JpaUnitConcordionRunner extends ConcordionRunner { @Override protected Object createTest() throws Exception { Object enhancedFixture; final Fixture setupFixture = (Fixture) getValue(this, "setupFixture"); final boolean isFirstTest = (boolean) getValue(this, "firstTest"); if (isFirstTest) { injectValue(this, "firstTest", false); enhancedFixture = setupFixture.getFixtureObject(); final Object fixtureObject = getDelegate(enhancedFixture); setupFixture.setupForRun(fixtureObject); injectFields(fixtureObject); } else { final Object fixtureObject = super.createTest(); injectFields(fixtureObject); enhancedFixture = EnhancedProxy.create(fixtureObject, executor); } return enhancedFixture; } JpaUnitConcordionRunner(final Class<?> fixtureClass);   }
@Test public void testCreateTestCreatesAnEnhancedObject() throws Exception { final JpaUnitConcordionRunner runner = new JpaUnitConcordionRunner(TestFixture.class); final Object testObject1 = runner.createTest(); assertThat(testObject1, instanceOf(EnhancedProxy.class)); }