public void after_spec_method_should_be_converted_to_hook() throws Exception {
HookTestSpec.afterSpec.set(new AtomicBoolean(false));
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());