@Test
public void should_throw_exception_when_no_target() {

    when(test.getTestClass()).thenReturn(new TestClass(PactProviderWithNoTarget.class));
    PactProviderWithNoTarget pactDefinition = new PactProviderWithNoTarget();
    InteractionRunner interactionRunner = new InteractionRunner();
    interactionRunner.pactsInstance = pactsInstance;
    interactionRunner.targetInstance = () -> target;
    assertThatExceptionOfType(IllegalArgumentException.class)
        .isThrownBy(() -> interactionRunner.executePacts(eventContext))
        .withMessage(
            "Field annotated with org.jboss.arquillian.test.api.ArquillianResource should implement org.arquillian.algeron.pact.provider.spi.Target and didn't found any");
}