ConditionDescriptorFactory { public ConditionDescriptor createConditionDescriptorForStubMode() { return createConditionDescriptor(new StubModeConditionChecker()); }  ConditionDescriptor createConditionDescriptorForStubMode();  }
@Test public void testCreateConditionDescriptorForStubMode() { ConditionDescriptor actualConditionDescriptor = underTest.createConditionDescriptorForStubMode(); SimpleCondition actualSimpleCondition = (SimpleCondition) actualConditionDescriptor.getCondition(); assertTrue(actualSimpleCondition.getConditionChecker() instanceof StubModeConditionChecker); assertFalse(actualSimpleCondition.isNegate()); assertTrue(actualSimpleCondition.getParameters().isEmpty()); }