@Test
public void remove() {

    int max = 10;
    byte[] bytes = createBytes(max);
    List<Integer> shuffle = new ArrayList<>();
    for (int i = 0; i < max; i++) {
        shuffle.add(i);
    }
    Collections.shuffle(shuffle);
    int length = bytes.length;
    for (int i = 0; i < max; i++) {
        bytes = BytesUtils.remove(bytes, shuffle.get(i));
        assertThat(bytes.length, CoreMatchers.is(length - (i * 4) - 4));
    }
}