### Question:
ByteComparator { public static boolean equals(byte[] b1, byte[] b2) { return b1.length == b2.length && compareTo(b1, 0, b1.length, b2, 0, b2.length) == 0; }  static boolean equals(byte[] b1, byte[] b2); static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2);  }### Answer:
@Test public void test01(){ byte[] arr01 = new byte[]{1, 2, 3, 4}; byte[] arr02 = new byte[]{1, 2, 3, 4}; boolean res = ByteComparator.equals(arr01, arr02); assertEquals(true, res); }
@Test public void test02(){ byte[] arr01 = new byte[]{1, 2, 3, 4}; byte[] arr02 = new byte[]{1, 2, 3, 5}; boolean res = ByteComparator.equals(arr01, arr02); assertEquals(false, res); }