@Test
public void throwsWhenRepositoryNotSet() {

    // given
    SingleKeySequenceSelector keySequenceSelector = new SingleKeySequenceSelector(DEFAULT_TEST_SEQUENCE_ID);
    expectedException.expect(IllegalStateException.class);
    expectedException.expectMessage(KeySequenceConfigRepository.class.getSimpleName() +
            " was not provided for " + SingleKeySequenceSelector.class.getSimpleName());
    // when
    keySequenceSelector.firstAvailable();
}