}
@Test
public void testUserAddedIsFound() throws UsersRepositoryException {
usersRepository.addUser("username", "password");
User user = usersRepository.getUserByName("username");
assertNotNull(user);
assertEquals("username does not match", user.getUserName(), "username");
assertTrue("user not contained in the repository", usersRepository.contains("username"));
User u = usersRepository.getUserByName("uSERNAMe");
assertNull("found the user searching for a different case!", u);
// String realname = usersRepository.getRealName("uSERNAMe");
// assertNull("name is not null", realname);
// assertEquals("name is different", "username", realname);