@Test
public void shouldThrowExceptionWhenMatcherDefinedButNotFoundInRepo() {

    // given
    Level level = level().withMatcher("matcher").build();
    when(matcherRepository.getMatcher("matcher")).thenReturn(null);
    // when
    catchException(basicLevelPreparer).prepare(level);
    // then
    assertThat(caughtException()).isInstanceOf(UnknownMatcherException.class);
}