public class OntoSpreadBooleanRestrictionVisitorTest extends TestCase {
public void testVisitOntoSpreadCompositeRestriction() {
OntoSpreadCompositeRestriction restrictions = new OntoSpreadCompositeRestriction();
restrictions.getRestrictions().add(new OntoSpreadRestrictionMinConcepts(2));
restrictions.getRestrictions().add(new OntoSpreadRestrictionMaxConcepts(10));
OntoSpreadState state = new OntoSpreadState();
OntoSpreadBooleanRestrictionVisitor visitor = new OntoSpreadBooleanRestrictionVisitor();
visitor.setOntoSpreadState(state);
Object stop = visitor.visit(restrictions);
assertEquals(stop.getClass(),Boolean.class);