@Test
@DatabaseSetup("classpath:dbunit/device_credentials.xml")
public void testFindByDeviceId() {

    UUID deviceId = UUID.fromString("958e3a30-3215-11e7-93ae-92361f002671");
    DeviceCredentials deviceCredentials = deviceCredentialsDao.findByDeviceId(deviceId);
    assertNotNull(deviceCredentials);
    assertEquals("958e3314-3215-11e7-93ae-92361f002671", deviceCredentials.getId().getId().toString());
    assertEquals("ID_1", deviceCredentials.getCredentialsId());
}