### Question:
DateAccessor implements PropertyAccessor<Date> { @Override public Date getCopy(Object object) { Date d = (Date) object; return d != null ? new Date(d.getTime()) : null; }  @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 testGetCopy() { Date d1 = new Date(); Date d2 = accessor.getCopy(d1); Assert.assertEquals(d1, d2); }