@Test
@DatabaseSetup("classpath:dbunit/user_credentials.xml")
public void testFindByUserId() {

    UserCredentials userCredentials = userCredentialsDao.findByUserId(UUID.fromString("787827e6-27d7-11e7-93ae-92361f002671"));
    assertNotNull(userCredentials);
    assertEquals("4b9e010c-27d5-11e7-93ae-92361f002671", userCredentials.getId().toString());
    assertEquals(true, userCredentials.isEnabled());
    assertEquals("password", userCredentials.getPassword());
    assertEquals("ACTIVATE_TOKEN_2", userCredentials.getActivateToken());
    assertEquals("RESET_TOKEN_2", userCredentials.getResetToken());
}