@Test
public void getTimestamp() {

    long mills = currentTimeMillis();
    IdGeneratorService idGeneratorService = new IdGeneratorService();
    long id = idGeneratorService.generate(1);
    assertEquals(idGeneratorService.getTimestamp(id), mills);
}