@Test
public void testFindByUserByUsernameAndPassword() throws Exception
{
System.out.println("testFindByUserByUsernameAndPassword()");
User user = getNewUser(USERNAME, PASSWORD);
user = objectUnderTest.saveUser(user);
final User userFound = objectUnderTest.findUserByUsernameAndPassword(USERNAME, PASSWORD);
assertNotNull(userFound);
assertEquals(user, userFound);
assertNull(objectUnderTest.findUserByUsernameAndPassword("wrongUsername", PASSWORD));
assertNull(objectUnderTest.findUserByUsernameAndPassword(USERNAME, "wrongPassword"));