@Test
public void testGenerateSimpleAttributeForField() throws Exception {

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