final HookTestSpec hookTestSpec = new HookTestSpec();
final Method[] afterScenarioMethods = new Method[] { HookTestSpec.class.getDeclaredMethod("afterScenario", Scenario.class, ScenarioResult.class) };
final MByHave8Hooks hook = new HookAnnotations(null, null, null, null, null, afterScenarioMethods).toMByHaveHook(hookTestSpec);
hook.endScenario("TEST_FEATURE_ID", mock(Scenario.class), ScenarioResult.Success);
assertTrue(HookTestSpec.afterScenario.get().get());
}