@Test
public void testGenerateSimpleNullableAttributeForField() throws Exception {

    Class<? extends SimpleNullableAttribute<NullablePojoWithField, String>> attributeClass = generateSimpleNullableAttributeForField(NullablePojoWithField.class, String.class, "foo", "foo");
    SimpleNullableAttribute<NullablePojoWithField, String> attribute = attributeClass.newInstance();
    validateAttribute(attribute, NullablePojoWithField.class, String.class, "foo", new NullablePojoWithField(), Collections.<String>emptyList());
}