### Question:
SQLTimeAccessor implements PropertyAccessor<Time> { @Override public Time fromString(Class targetClass, String s) { if (s == null) { return null; } if (StringUtils.isNumeric(s)) { return new Time(Long.parseLong(s)); } Time t = Time.valueOf(s); return t; }  @Override Time fromBytes(Class targetClass, byte[] b); @Override byte[] toBytes(Object object); @Override String toString(Object object); @Override Time fromString(Class targetClass, String s); @Override Time getCopy(Object object); Time getInstance(Class<?> clazz); static Logger log; }### Answer:
@Test public void testFromString() { Assert.assertNull(accessor.fromString(Time.class, null)); long l = System.currentTimeMillis(); Time d = new Time(l); Time d2 = accessor.fromString(Time.class, "" + l); Assert.assertEquals(d, d2); }