public static byte[] getByteArraySlice(byte[] array, int begin, int end) {
        byte[] slice = new byte[end - begin + 1];
        System.arraycopy(array, begin, slice, 0, slice.length);
        return slice;
    }
@Test
    public void testGetByteArraySlice() throws Exception {
        assertArrayEquals(new byte[]{1, 2},
                JOrphanUtils.getByteArraySlice(new byte[]{0, 1, 2, 3}, 1, 2));
    }