### Question:
IntegerAccessor implements PropertyAccessor<Integer> { @Override public final Integer fromBytes(Class targetClass, byte[] b) { if (b == null) { return null; } return ((b[0] << 24) + ((b[1] & 0xFF) << 16) + ((b[2] & 0xFF) << 8) + (b[3] & 0xFF)); }  @Override final Integer fromBytes(Class targetClass, byte[] b); @Override final byte[] toBytes(Object val); @Override String toString(Object object); @Override Integer fromString(Class targetClass, String s); @Override Integer getCopy(Object object); Integer getInstance(Class<?> clazz);  }### Answer:
@Test public void testFromBytes() { Assert.assertNull(accessor.fromBytes(Integer.class, null)); Integer d1 = new Integer(4); byte[] b = accessor.toBytes(d1); Integer d2 = accessor.fromBytes(Integer.class, b); Assert.assertEquals(d1, d2); }