PersistenceUnitDecorator implements TestMethodDecorator { @Override public void afterTest(final TestInvocation invocation) throws Exception { }  @Override int getPriority(); @Override void beforeTest(final TestInvocation invocation); @Override void afterTest(final TestInvocation invocation); @Override boolean isConfigurationSupported(final ExecutionContext ctx);  }
@Test public void testAfterTestDoesNotHaveAnyEffect() throws Exception { final PersistenceUnitDecorator fixture = new PersistenceUnitDecorator(); fixture.afterTest(invocation); verifyNoMoreInteractions(entityManagerFactory, ctx, invocation); }