### Question:
Util { public static boolean isDESParityAdjusted (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); }  static void adjustDESParity(byte[] bytes); static boolean isDESParityAdjusted(byte[] bytes);  }### Answer:
@Test public void testIsDESParityAdjusted() throws Throwable { byte[] bytes = new byte[2]; boolean result = Util.isDESParityAdjusted(bytes); assertFalse(result, "result"); }
@Test public void testIsDESParityAdjusted1() throws Throwable { byte[] bytes = new byte[0]; boolean result = Util.isDESParityAdjusted(bytes); assertTrue(result, "result"); }
@Test public void testIsDESParityAdjustedThrowsNullPointerException() throws Throwable { try { Util.isDESParityAdjusted(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"[B.clone()\" because \"bytes\" is null", ex.getMessage(), "ex.getMessage()"); } } }