### Question:
IntegerConverter implements BytesConverter<Integer> { @Override public byte[] toBytes(Integer value) { return getBytes(value); }  @Override Integer fromBytes(byte[] bytes); @Override byte[] toBytes(Integer value); static final BytesConverter<Integer> INSTANCE; }### Answer:
@Test public void testToBytes() { assertArrayEquals(new byte[]{127, -1, -1, -2}, new IntegerConverter().toBytes(Integer.MAX_VALUE - 1)); assertArrayEquals(new byte[]{127, -2}, new IntegerConverter().toBytes(Short.MAX_VALUE - 1)); assertArrayEquals(new byte[]{-7}, new IntegerConverter().toBytes(-7)); }