### Question:
CalendarAccessor implements PropertyAccessor<Calendar> { @Override public Calendar getCopy(Object object) { if (object == null) return null; Calendar c = (Calendar) object; Calendar copy = Calendar.getInstance(); copy.setTimeInMillis(c.getTimeInMillis()); return copy; }  @Override Calendar fromBytes(Class targetClass, byte[] b); @Override byte[] toBytes(Object object); @Override String toString(Object object); @Override Calendar fromString(Class targetClass, String s); @Override Calendar getCopy(Object object); Calendar getInstance(Class<?> clazz);  }### Answer:
@Test public void testGetCopy() { Assert.assertNull(accessor.getCopy(null)); Calendar v1 = Calendar.getInstance(); Calendar v2 = accessor.getCopy(v1); Assert.assertEquals(v1, v2); }