@Test public void testCustomWorkerId() {

    IdGenerator worker100 = new IdGenerator(100);
    IdGenerator worker200 = new IdGenerator(200);
    assertTrue("Different worker id yields different id",
            worker100.getNextId() != worker200.getNextId());
}