### Question:
MoreArrays { public static boolean isSorted(final long[] data, final int start, final int end) { for (int i = start; i < end - 1; i++) { if (data[i] >= data[i + 1]) { return false; } } return true; } private  MoreArrays(); static boolean isSorted(final long[] data, final int start, final int end); static int deduplicate(final long[] data, final int start, final int end); static int deduplicate(final int[] data, final int start, final int end);  }### Answer:
@Test public void testIsSortedEmpty() { assertTrue(MoreArrays.isSorted(new long[]{}, 0, 0)); }
@Test public void testIsSortedTrue() { assertTrue(MoreArrays.isSorted(new long[]{1, 2, 3}, 0, 3)); }
@Test public void testIsSortedFalse() { assertFalse(MoreArrays.isSorted(new long[]{1, 3, 2}, 0, 3)); }
@Test public void testIsSortedSubset() { assertTrue(MoreArrays.isSorted(new long[]{5, 1, 2, 3, -4}, 1, 4)); }