### Question:
PointAccessor implements PropertyAccessor<Point> { @Override public Point fromString(Class targetClass, String s) { if (s == null) return null; WKTReader reader = new WKTReader(); try { return new Point((com.vividsolutions.jts.geom.Point) reader.read(s)); } catch (ParseException e) { log.error("Parse exception, Caused by {}.", e); throw new PropertyAccessException(e); } }  @Override Point fromBytes(Class targetClass, byte[] b); @Override byte[] toBytes(Object object); @Override String toString(Object object); @Override Point fromString(Class targetClass, String s); @Override Point getCopy(Object object); @Override Object getInstance(Class<?> clazz); static Logger log; }### Answer:
@Test public void testFromString() { Point point = new Point(4.5, 6.3); WKTWriter writer = new WKTWriter(); String wktStr = writer.write(point); Point point2 = pa.fromString(com.vividsolutions.jts.geom.Point.class, wktStr); Assert.assertNotNull(point2); Assert.assertEquals(point.getX(), point2.getX()); Assert.assertEquals(point.getY(), point2.getY()); }