assertEquals(2, displayed.get(0).getAttributeNames().size());
}
@Test
public void testDifferentValueDisplayAttributes() {
final IPersonAttributes person = mock(IPersonAttributes.class);
final Map<String, List<Object>> attributes = new HashMap<String, List<Object>>();
attributes.put("username", Collections.<Object>singletonList("user1"));
attributes.put("user.login.id", Collections.<Object>singletonList("user2"));
when(person.getAttributes()).thenReturn(attributes);
final List<GroupedPersonAttribute> displayed = helper.groupPersonAttributes(person, request);
assertEquals(2, displayed.size());
}