@Test
void testProvideTestTemplateInvocationContextsShouldThrowProperExceptionIfAnnotationIsNotPresent() {

    // Given:
    when(extensionContext.getRequiredTestMethod()).thenReturn(testMethod);
    // When:
    Exception result = assertThrows(ExtensionConfigurationException.class,
            () -> underTest.provideTestTemplateInvocationContexts(extensionContext));
    // Then:
    assertThat(result).hasMessageMatching("Could not find annotation '.*' on test method '.*'\\.");
}