protected CompoundVertexTest addDefaultSearchToAndTest(AndVertexTest vertexTest) {
ClassCollectionProperty classCollectionProperty = new ClassCollectionProperty(serviceContainedClass);
TestContainsClassProperty visitor = new TestContainsClassProperty(classCollectionProperty);
vertexTest.accept(visitor);
if(!visitor.isClassTested()) {
CollectionContains objectClassContains = new CollectionContains(this,
vertexTest.getDriver(), Arrays.asList(new Property[] { classCollectionProperty }), serviceContainedClass);
vertexTest.add(objectClassContains);
}
return vertexTest;
}