### Question:
ObjectAccessor implements PropertyAccessor<Object> { @Override public Object fromString(Class targetClass, String s) { try { if (s == null) { return null; } Object o = (Object) s; return o; } catch (NumberFormatException e) { log.error("Number format exception, Caused by {}.", e); throw new PropertyAccessException(e); } }  @Override final Object fromBytes(Class targetClass, byte[] bytes); @Override final byte[] toBytes(Object o); @Override final String toString(Object object); @Override Object fromString(Class targetClass, String s); @Override Object getCopy(Object object); Object getInstance(Class<?> clazz); static Logger log; }### Answer:
@Test public void testFromString() { Assert.assertNull(accessor.fromString(String.class, null)); Object o = accessor.fromString(String.class, "Hello"); Assert.assertNotNull(o); Assert.assertTrue(o instanceof String); Assert.assertEquals("Hello", (String)o); }