testContract3.setLocalReference("MY/FIRM/CONTRACTS/2013/21");
testContract3.getConsiderations().add(getTestUtils().getTestConsideration());
testMaintenanceRoutingInitToFinal(docType, testContract3);
// no document criteria given, so both documents should be found
SearchTestCriteria crit1 = new SearchTestCriteria();
crit1.setExpectedDocuments(3);
// search for exact local reference
SearchTestCriteria crit2 = new SearchTestCriteria();
crit2.setExpectedDocuments(1);
crit2.getFieldNamesToSearchValues().put("localReference", testContract.getLocalReference());
// search for name
SearchTestCriteria crit3 = new SearchTestCriteria();
crit3.setExpectedDocuments(1);
crit3.getFieldNamesToSearchValues().put("name", "*temporary*");
// search for local reference wild-card
SearchTestCriteria crit5 = new SearchTestCriteria();
crit5.setExpectedDocuments(2);
crit5.getFieldNamesToSearchValues().put("localReference", "*2013*");
// search for main client
SearchTestCriteria crit6 = new SearchTestCriteria();
crit6.setExpectedDocuments(1);
crit6.getFieldNamesToSearchValues().put("clientPrincipalName", "patrick_kamau");
// search for summary of terms
SearchTestCriteria crit7 = new SearchTestCriteria();
crit7.setExpectedDocuments(3);
crit7.getFieldNamesToSearchValues().put("summaryOfTerms", "*see*");
// search for summary of terms
SearchTestCriteria crit8 = new SearchTestCriteria();
crit8.setExpectedDocuments(3);
crit8.getFieldNamesToSearchValues().put("serviceOffered", "*flat*");
List<SearchTestCriteria> crits = new ArrayList<SearchTestCriteria>();
crits.add(crit1);
crits.add(crit2);
crits.add(crit3);