MetadataExtractor { public AnnotationInspector<PersistenceContext> persistenceContext() { return using(PersistenceContext.class); } MetadataExtractor(final Class<?> testClass); AnnotationInspector<Transactional> transactional(); AnnotationInspector<InitialDataSets> initialDataSets(); AnnotationInspector<ExpectedDataSets> expectedDataSets(); AnnotationInspector<Cleanup> cleanup(); AnnotationInspector<CleanupUsingScripts> cleanupUsingScripts(); AnnotationInspector<PersistenceContext> persistenceContext(); AnnotationInspector<PersistenceUnit> persistenceUnit(); AnnotationInspector<ApplyScriptsBefore> applyScriptsBefore(); AnnotationInspector<ApplyScriptsAfter> applyScriptsAfter(); AnnotationInspector<CleanupCache> cleanupCache(); AnnotationInspector<Bootstrapping> bootstrapping();  }
@Test public void testPersistenceContext() { final AnnotationInspector<PersistenceContext> ai = metadataExtractor.persistenceContext(); assertThat(ai, notNullValue()); }