@Test
public void testGetLastTimeStamp() {

	IdmIdentityDto identityOne = new IdmIdentityDto();
	identityOne.setCreated(ZonedDateTime.now().minusMinutes(10));
	identityOne.setModified(ZonedDateTime.now().minusMinutes(100));
	ZonedDateTime lastTimeStamp = longPollingManager.getLastTimeStamp(identityOne);
	assertEquals(identityOne.getCreated().plus(1, ChronoUnit.MILLIS), lastTimeStamp);
	identityOne.setCreated(ZonedDateTime.now().minusMinutes(100));
	identityOne.setModified(ZonedDateTime.now().minusMinutes(10));
	lastTimeStamp = longPollingManager.getLastTimeStamp(identityOne);
	assertEquals(identityOne.getModified().plus(1, ChronoUnit.MILLIS), lastTimeStamp);
	identityOne.setCreated(ZonedDateTime.now().minusMinutes(100));
	identityOne.setModified(null);
	lastTimeStamp = longPollingManager.getLastTimeStamp(identityOne);
	assertEquals(identityOne.getCreated().plus(1, ChronoUnit.MILLIS), lastTimeStamp);
	identityOne.setCreated(null);
	identityOne.setModified(ZonedDateTime.now().minusMinutes(100));
	lastTimeStamp = longPollingManager.getLastTimeStamp(identityOne);
	assertEquals(identityOne.getModified().plus(1, ChronoUnit.MILLIS), lastTimeStamp);
}