service.loadUserByUsername("testUser");
}
@Test
public void shouldReturnUserDetailsWhenUserForUsernameGiven() {
when(userDaoMock.load("testUser")).thenReturn(new User("testUser", "password"));
UserDetails details = service.loadUserByUsername("testUser");
assertEquals("testUser", details.getUsername());
assertEquals("password", details.getPassword());