@Test
public void testGenerateMultiValueAttributeForGetter() throws Exception {

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