@Test
public void testGenerateMultiValueAttributeForField_ListField() throws Exception {

    Class<? extends MultiValueAttribute<PojoWithMultiValueField, String>> attributeClass = generateMultiValueAttributeForField(PojoWithMultiValueField.class, String.class, "foo", "foo");
    MultiValueAttribute<PojoWithMultiValueField, String> attribute = attributeClass.newInstance();
    validateAttribute(attribute, PojoWithMultiValueField.class, String.class, "foo", new PojoWithMultiValueField(), asList("bar1", "bar2"));
}