@Test
public void testPollId() {

    // Test generation of ids for preset entities
    Set<Integer> cloudletIds = new HashSet<>();
    cloudletIds.add(Id.pollId(Cloudlet.class));
    cloudletIds.add(Id.pollId(Cloudlet.class));
    cloudletIds.add(Id.pollId(CloudLetA.class));
    cloudletIds.add(Id.pollId(CloudLetA.class));
    cloudletIds.add(Id.pollId(CloudLetB.class));
    assertEquals(5, cloudletIds.size());
    // Test generation of ids for miscellaneous entities
    Set<Integer> ids = new HashSet<>();
    ids.add(Id.pollId(X.class));
    ids.add(Id.pollId(Y.class));
    ids.add(Id.pollId(Object.class));
    ids.add(Id.pollId(X.class));
    ids.add(Id.pollId(String.class));
    ids.add(Id.pollId(Y.class));
    assertEquals(6, ids.size());
}