@Test
public void SessionCacheRejectDDoS() {

  final SessionCache sessionCache = createSessionCache(this.longTTL, 2L);
  final Session session1 = new Session("TEST_SESSION_ID1", new User("TEST_USER_HIT"),
      "123.12.12.123");
  final Session session2 = new Session("TEST_SESSION_ID2", new User("TEST_USER_HIT"),
      "123.12.12.123");
  final Session session3 = new Session("TEST_SESSION_ID3", new User("TEST_USER_HIT"),
      "123.12.12.123");
  assertThat(sessionCache.addSession(session1)).isTrue();
  assertThat(sessionCache.addSession(session2)).isTrue();
  assertThat(sessionCache.addSession(session3)).isFalse();
}