@Test
public void containsReturnsTrueIfElementPresentInGivenMap() {

    // given
    Map<CharSequence, ItemSource> map = createDefaultTestMap();
    KeySequenceConfigRepository repository = new KeySequenceConfigRepository(map, DEFAULT_TEST_KEY_SEQUENCE_EXPIRY);
    KeySequenceConfig expected = createDefaultTestKeySequenceConfig();
    map.put(expected.getKey(), expected);
    // when
    boolean result = repository.contains(expected.getKey());
    // then
    assertTrue(result);
}