GlobalVariables.setUserSession(new UserSession("clerk1"));
MatterTxDocBase txDoc = getTxDoc();
txDoc.setMatterId(2001l);
assertFalse("rule should return false", getRule().processCustomRouteDocumentBusinessRules(txDoc));
assertTrue("there should be errors", GlobalVariables.getMessageMap().hasErrors());
txDoc.logErrors();
GlobalVariables.getMessageMap().clearErrorMessages();
txDoc.setMatterId(1001l);
assertTrue("rule should return true", getRule().processCustomRouteDocumentBusinessRules(txDoc));
txDoc.logErrors();