@Test public void whenNotifiedOfLogInThenTopUpResultStatusShouldBeRemovedFromCache() { Element element = new Element( PLAYER_ID, new TopUpResultService.TopUpStatusCacheEntry(ACKNOWLEDGED, new DateTime())); topUpStatusCache.put(element); assertNotNull(topUpStatusCache.get(PLAYER_ID)); underTest.clearTopUpStatus(PLAYER_ID); assertNull(topUpStatusCache.get(PLAYER_ID)); }