### Question:
BooleanConverter implements BytesConverter<Boolean> { @Override public byte[] toBytes(Boolean value) { return new byte[]{ value ? (byte) 1 : 0 }; }  @Override Boolean fromBytes(byte[] bytes); @Override byte[] toBytes(Boolean value); static final BytesConverter<Boolean> INSTANCE; }### Answer:
@Test public void testToBytes() throws ParseException { assertArrayEquals(new byte[]{0}, BooleanConverter.INSTANCE.toBytes(false)); assertArrayEquals(new byte[]{1}, BooleanConverter.INSTANCE.toBytes(true)); }