@Test
public void testGenerateSimpleAttributeForGetterMethod() throws Exception {

    Class<? extends SimpleAttribute<PojoWithGetter, String>> attributeClass = generateSimpleAttributeForGetter(PojoWithGetter.class, String.class, "getFoo", "foo");
    SimpleAttribute<PojoWithGetter, String> attribute = attributeClass.newInstance();
    validateAttribute(attribute, PojoWithGetter.class, String.class, "foo", new PojoWithGetter(), asList("bar"));
}