### Question:
EnumAccessor implements PropertyAccessor<Enum> { @Override public String toString(Object object) { if (object == null) { return null; } Enum en = (Enum) object; return en.name(); }  @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 testToStringObject() { String s = accessor.toString(day1); Assert.assertEquals(Day.MONDAY.name(), s); s = accessor.toString(null); Assert.assertNull(s); }