}
public void testCreateSplitConditionalTaskState() {
SplitConditionalTaskState splitTaskState;
ConditionalTaskState taskState;
CyclicConditionState executionCondition;
BoundConditionState endingCondition;
ConditionalTaskStateFactory factory = new ConditionalTaskStateFactory();
// existing class in properties file
splitTaskState = factory.createSplitConditionalTaskState(AbstractSplitConditionalTask.class);
assertEquals(1, splitTaskState.getStepSize());
taskState = splitTaskState.getConditionalTask();
executionCondition = taskState.getExecutionCondition();
assertEquals(5, executionCondition.getCycle());
assertEquals(0, executionCondition.getCount());
endingCondition = taskState.getEndingCondition();
assertEquals(10, endingCondition.getBound());
assertEquals(0, endingCondition.getCount());
// existing class in properties file
splitTaskState = factory.createSplitConditionalTaskState(AbstractConditionalTask.class);
assertEquals(1, splitTaskState.getStepSize());
taskState = splitTaskState.getConditionalTask();
executionCondition = taskState.getExecutionCondition();
assertEquals(2, executionCondition.getCycle());
assertEquals(0, executionCondition.getCount());
endingCondition = taskState.getEndingCondition();
assertEquals(0, endingCondition.getBound());
assertEquals(0, endingCondition.getCount());
// non existing class in properties file
splitTaskState = factory.createSplitConditionalTaskState(SplitConditionalTask.class);
assertEquals(1, splitTaskState.getStepSize());
taskState = splitTaskState.getConditionalTask();
executionCondition = taskState.getExecutionCondition();
assertEquals(1, executionCondition.getCycle());
assertEquals(0, executionCondition.getCount());
endingCondition = taskState.getEndingCondition();
assertEquals(0, endingCondition.getBound());
assertEquals(0, endingCondition.getCount());
}