public void shouldFailWithTwoInheritedSubclass() throws Throwable {
ClassLanguage classLanguage = new ClassLanguage(languageMixin, mock(ExceptionFactory.class), stepMother, Arrays.<ClassAnalyzer>asList(new JavaAnalyzer()));
classLanguage.addClass(FlintStone.class);
classLanguage.addClass(Fred.class);
classLanguage.addClass(Wilma.class);
classLanguage.begin_scenario(null);
List<StepDefinition> stepDefinitions = classLanguage.getStepDefinitions();
assertEquals(1, stepDefinitions.size());
assertEquals(Fred.class, ((AbstractStepDefinition)stepDefinitions.get(0)).invokeWithArgs(new Object[0]));
}