### Question:
FieldAccessor { public Field getField(final Class<?> beanClass, final String fieldName) { return getAccessor(beanClass).getField(fieldName); } FieldAccessor(); Object read(final Object bean, final String fieldName); void write(final Object bean, final String fieldName, final Object param); Class<?> getFieldType(final Class<?> beanClass, final String fieldName); Field getField(final Class<?> beanClass, final String fieldName);  }### Answer:
@Test public void testField() throws IllegalAccessException { final String value = "value"; testBean.setName(value); final Field field = accessor.getField(testBean.getClass(), TestBean.PROP_NAME); final Object actual = field.get(testBean); Assert.assertEquals(value, actual); }