### Question:
StringAccessor implements PropertyAccessor<String> { @Override public final String toString(Object object) { if (object != null && object.getClass().isAssignableFrom(String.class)) { return (String) object; } return null; }  @Override final String fromBytes(Class targetClass, byte[] bytes); @Override final byte[] toBytes(Object s); @Override final String toString(Object object); @Override String fromString(Class targetClass, String s); @Override String getCopy(Object object); String getInstance(Class<?> clazz); static Logger log; }### Answer:
@Test public void testToStringObject() { Assert.assertNull(accessor.toString(null)); String d1 = new String("AAA"); String s1 = d1.toString(); String s2 = accessor.toString(d1); Assert.assertTrue(s1.equals(s2)); }