### Question:
DateAccessor implements PropertyAccessor<Date> { @Override publicString toString(Object object) { Date date = (Date) object; if (date == null) { return null; } return String.valueOf(date.getTime()); }  @Override Date fromBytes(Class targetClass, byte[] bytes); @Override byte[] toBytes(Object date); @Override String toString(Object object); @Override Date fromString(Class targetClass, String s); static Date getDateByPattern(String date); @Override Date getCopy(Object object); static String getFormattedObect(String date); Date getInstance(Class<?> clazz);  }### Answer:
@Test public void testToStringObject() { Assert.assertNull(accessor.toString(null)); Date d1 = new Date(); String s1 = d1.getTime() + ""; String s2 = accessor.toString(d1); Assert.assertTrue(s1.equals(s2)); }