### Question:
EnumAccessor implements PropertyAccessor<Enum> { @Override public Enum getCopy(Object object) { if (object != null) { return fromString(object.getClass(), toString(object)); } return null; }  @Override Enum fromBytes(Class targetClass, byte[] b); @Override byte[] toBytes(Object object); @Override String toString(Object object); @Override Enum fromString(Class targetClass, String string); @Override Enum getCopy(Object object); Enum getInstance(Class<?> clazz);  }### Answer:
@Test public void testGetCopy() { try { Day day = Day.MONDAY; Day d = (Day) accessor.getCopy(day); Assert.assertNotNull(d); Assert.assertTrue(day.equals(d)); d = (Day) accessor.getCopy(null); Assert.assertNull(d); } catch (PropertyAccessException e) { Assert.fail(e.getMessage()); } }