### Question:
PropertyAccessor { public Object read(final Object bean, final String propertyName) { return getAccessor(bean.getClass()).read(bean, propertyName); } PropertyAccessor(); Object read(final Object bean, final String propertyName); void write(final Object bean, final String propertyName, final Object param); Class<?> getPropertyType(final Class<?> beanClass, final String propertyName); Method getReadMethod(final Class<?> beanClass, final String propertyName); Method getWriteMethod(final Class<?> beanClass, final String propertyName); Collection<PropertyDescriptor> getPropertyDescriptors(final Class<?> beanClass);  }### Answer:
@Test public void testRead() { final String value = "value"; testBean.setName(value); final String actual = (String) accessor.read(testBean, TestBean.PROP_NAME); Assert.assertEquals(value, actual); }