### Question:
ObjectAccessor implements PropertyAccessor<Object> { public Object getInstance(Class<?> clazz) { Object o = null; try { o = clazz.newInstance(); return o; } catch (InstantiationException ie) { log.warn("Instantiation exception,caused by :" + ie.getMessage()); return null; } catch (IllegalAccessException iae) { log.warn("Illegal access exception,caused by :" + iae.getMessage()); return null; } }  @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 testGetInstance() { Object o = accessor.getInstance(PersonalDetail.class); Assert.assertNotNull(o); }