### Question:
UUIDAccessor implements PropertyAccessor<UUID> { @Override public UUID fromString(Class targetClass, String s) throws PropertyAccessException { try { if (s == null) { return null; } return UUID.fromString(s); } catch (Exception e) { log.error("Error occured, Caused by {}.", e); throw new PropertyAccessException(e); } }  @Override UUID fromBytes(Class targetClass, byte[] bytes); @Override byte[] toBytes(Object object); @Override String toString(Object object); @Override UUID fromString(Class targetClass, String s); @Override UUID getCopy(Object object); UUID getInstance(Class<?> clazz); static Logger log; }### Answer:
@Test public void testFromString() { Assert.assertNull(accessor.fromString(UUID.class, null)); UUID uuid = UUID.randomUUID(); String s = uuid.toString(); UUID uuid2 = accessor.fromString(UUID.class, s); Assert.assertEquals(uuid, uuid2); }