### Question:
UtilConversion { public static boolean[] invert(boolean[] binary) { Check.notNull(binary); final boolean[] inverted = new boolean[binary.length]; for (int i = 0; i < inverted.length; i++) { inverted[i] = !binary[i]; } return inverted; } private  UtilConversion(); static byte[] intToByteArray(int value); static int byteArrayToInt(byte[] bytes); static byte[] shortToByteArray(short value); static short byteArrayToShort(byte[] bytes); static byte fromUnsignedByte(short value); static short toUnsignedByte(byte value); static short fromUnsignedShort(int value); static int toUnsignedShort(short value); static int mask(int value); static int boolToInt(boolean value); static boolean[] toBinary(int number, int length); static int fromBinary(boolean[] binary); static boolean[] invert(boolean[] binary); static String toTitleCase(String string); static String toTitleCaseWord(String string);  }### Answer:
@Test void testInvert() { assertArrayEquals(new boolean[] { true, false, true }, UtilConversion.invert(new boolean[] { false, true, false })); for (int i = 0; i < 32; i++) { final boolean[] table = new boolean[i]; for (int j = 0; j < table.length; j++) { if (j % 1 == 0) { table[j] = false; } else { table[j] = true; } } final boolean[] inverted = UtilConversion.invert(table); assertEquals(table.length, inverted.length); for (int j = 0; j < inverted.length; j++) { assertTrue(inverted[j] == !table[j]); } } }