JpaUnitFixture extends FixtureInstance { @Override public String getSpecificationDescription() { final String name = FixtureSpecificationMapper.removeSuffixFromFixtureName(originalFixture.getClass().getSimpleName()); return SimpleFormatter.format("[Concordion Specification for '%s']", name); } JpaUnitFixture(final DecoratorExecutor executor, final Object fixtureObject); @Override void beforeSpecification(); @Override void afterSpecification(); @Override String getSpecificationDescription();  }
@Test public void testSpecificationDescriptionContainsTheNameOfOriginalFixtureClassAndNotOfTheEnhancedClass() { final String specificationDescription = fixture.getSpecificationDescription(); assertThat(specificationDescription, containsString(TestClass.class.getSimpleName())); assertThat(specificationDescription, not(containsString("$"))); }