@Test
public void testSize() {

    int count = TestData.getScaleCount();
    String[] keys = new String[count];
    for (int i = 0; i < count; i++) {
        keys[i] = TestData.getString();
    }
    int totalSize = 0;
    for (int i = 0; i < count * TestData.getScaleCount(); i++) {
        String key = keys[(TestData.getScaleCount() * i) % count];
        Object value = null;
        while (value == null || map.containsEntry(key, value)) {
            value = TestData.getObject();
        }
        map.put(key, value);
        totalSize++;
    }
    Assert.assertEquals(totalSize, map.size());
}