@Test
public void testLotsOfPutsAndGets() {
SessionIdGenerator generator = new SecureRandomSessionIdGenerator();
final Map<String, String> reference = new HashMap<>();
final SecureHashMap<String, String> map = new SecureHashMap<>();
for (int i = 0; i < 10000; ++i) {
String key = generator.createSessionId();
String value = generator.createSessionId();
map.put(key, value);
reference.put(key, value);
}
for (Map.Entry<String, String> entry : reference.entrySet()) {
Assert.assertEquals(entry.getValue(), map.get(entry.getKey()));