### Question:
FieldAccessor implements Accessor { public Object getValue(Object object) throws PropertyException { try { return field.get(object); } catch (Throwable th) { throw new PropertyException( "Error reading field: " + field.getName(), this, object, th); } } FieldAccessor(Class<?> objectClass, String propertyName, Class<?> propertyType); String getName(); Object getValue(Object object); void setValue(Object object, Object newValue);  }### Answer:
@Test public void testGet() { FieldAccessor accessor = new FieldAccessor(TstBean.class, "string", String.class); TstBean object = new TstBean(); object.setString("abc"); assertEquals("abc", accessor.getValue(object)); }