final HookTestSpec hookTestSpec = new HookTestSpec();
final Method[] afterSpecMethods = new Method[] { HookTestSpec.class.getDeclaredMethod("afterSpecification", Specification.class, SpecOutput.class) };
final MByHave8Hooks hook = new HookAnnotations(null, afterSpecMethods, null, null, null, null).toMByHaveHook(hookTestSpec);
hook.endSpecification(mock(Specification.class), mock(SpecOutput.class));
assertTrue(HookTestSpec.afterSpec.get().get());
}