@Test
public void testListSimple() throws ListProviderException {

  Map<String, String> list = usersListProvider.getList(UsersListProvider.NAME_ONLY, null);
  Assert.assertTrue(list.containsKey(user1.getName()));
  Assert.assertTrue(list.containsKey(user2.getName()));
  Assert.assertTrue(list.containsKey(user3.getName()));
  Assert.assertEquals(3, list.size());
  list = usersListProvider.getList(UsersListProvider.USERNAME, null);
  Assert.assertTrue(list.containsKey(user1.getUsername()));
  Assert.assertTrue(list.containsKey(user2.getUsername()));
  Assert.assertTrue(list.containsKey(user3.getUsername()));
  Assert.assertTrue(list.containsKey(user4.getUsername()));
  Assert.assertEquals(4, list.size());
  list = usersListProvider.getList(UsersListProvider.EMAIL_ONLY, null);
  Assert.assertTrue(list.containsKey(user1.getEmail()));
  Assert.assertTrue(list.containsKey(user4.getEmail()));
  Assert.assertEquals(2, list.size());
  list = usersListProvider.getList(UsersListProvider.USERDIRECTORY_ONLY, null);
  Assert.assertTrue(list.containsKey(user1.getProvider()));
  Assert.assertEquals(1, list.size());
}