@Test
public void testGetUser() throws Exception {

    //given
    final User testData = new User("1");
    testData.getRoles().add(new Role("user"));
    given(userDao.get(1L)).willReturn(testData);
    //then
    User user = userManager.getUser("1");
    //then
    assertTrue(user != null);
    assert user != null;
    assertTrue(user.getRoles().size() == 1);
}