@Test
public void testGenerateSimpleAttributeForField_PrimitiveField() throws Exception {

    Class<? extends SimpleAttribute<PojoWithPrimitiveField, Integer>> attributeClass = generateSimpleAttributeForField(PojoWithPrimitiveField.class, Integer.class, "foo", "foo");
    SimpleAttribute<PojoWithPrimitiveField, Integer> attribute = attributeClass.newInstance();
    validateAttribute(attribute, PojoWithPrimitiveField.class, Integer.class, "foo", new PojoWithPrimitiveField(), asList(5));
}