* tests {@link org.martinlaw.bo.MatterWorkRule#isPrincipalNameInAssigneeList(MatterWork, String)}
*/
public void testIsPrincipalNameInAssigneeList () {
work = getWork();
work.setMatterId(3000l);
MatterWorkRule rule = new MatterWorkRule();
String principalNameExists = "pauline_njogu";
String principalNameDummy = "en";
assertFalse("matter id does not exist", rule.isPrincipalNameInAssigneeList(work, principalNameExists));
assertFalse("matter id does not exist", rule.isPrincipalNameInAssigneeList(work, principalNameDummy));
work = getWork();
work.setMatterId(1001l);
assertTrue("assignee exists", rule.isPrincipalNameInAssigneeList(work, principalNameExists));
assertFalse("assignee does not exist", rule.isPrincipalNameInAssigneeList(work, principalNameDummy));
}