public static boolean xor(boolean... array) {
		if (ArrayUtil.isEmpty(array)) {
			throw new IllegalArgumentException("The Array must not be empty");
		}

		boolean result = false;
		for (final boolean element : array) {
			result ^= element;
		}

		return result;
	}
@Test
	public void xorTest(){
		assertTrue(BooleanUtil.xor(true,false));
		assertTrue(BooleanUtil.xorOfWrap(true,false));
	}