tckBusiness.saveBusinesses(authInfoJoe, TOM_BUSINESS5_XML, TOM_BUSINESS5_KEY, 1);
try {
int size = 0;
ServiceList sl = null;
FindService fs = new FindService();
//by default keys are ADD, we should only find service 5
KeyedReference keyRef1 = new KeyedReference();
keyRef1.setTModelKey(TOM_PUBLISHER_TMODEL01_KEY);
keyRef1.setKeyValue("value-z");
KeyedReference keyRef2 = new KeyedReference();
keyRef2.setTModelKey(TOM_PUBLISHER_TMODEL02_KEY);
keyRef2.setKeyValue("value-x");
CategoryBag cb = new CategoryBag();
cb.getKeyedReference().add(keyRef1);
cb.getKeyedReference().add(keyRef2);
fs.setCategoryBag(cb);
sl = inquiry.findService(fs);
if (sl.getServiceInfos() == null) {
Assert.fail("Should have found one entry on FindService with TModelBag, "
+ "found " + size);