@Test
public void testIllegalXorList() {

  List<byte[]> list1 = new ArrayList<>();
  List<byte[]> list2 = new ArrayList<>();
  list1.add(new byte[12]);
  list1.add(new byte[15]);
  list2.add(new byte[12]);
  list2.add(new byte[15]);
  list2.add(new byte[1]);
  boolean thrown = false;
  try {
    ByteArrayHelper.xor(list1, list2);
  } catch (IllegalArgumentException e) {
    assertEquals("The vectors are not of equal length", e.getMessage());
    thrown = true;
  }
  assertEquals(thrown, true);
  thrown = false;
  list1.add(new byte[2]);
  try {
    ByteArrayHelper.xor(list1, list2);
  } catch (IllegalArgumentException e) {
    assertEquals("The byte arrays are not of equal length", e.getMessage());
    thrown = true;
  }
  assertEquals(thrown, true);
}