### Question:
CharAccessor implements PropertyAccessor<Character> { @Override public Character fromBytes(Class targetClass, byte[] data) { if (data == null || data.length != 2) { if (log.isWarnEnabled()) { log.warn("Data length is not matching"); } return 0x0; } return (char) ((0xff & data[0]) << 8 | (0xff & data[1]) << 0); }  @Override Character fromBytes(Class targetClass, byte[] data); @Override byte[] toBytes(Object object); @Override String toString(Object object); @Override Character fromString(Class targetClass, String s); @Override Character getCopy(Object object); Character getInstance(Class<?> clazz);  }### Answer:
@Test public void testFromBytes() { byte[] b = { 0, 65 }; char a = accessor.fromBytes(Character.class, b); Assert.assertEquals('A', a); }