@Test
public void testIsTrustRole() {

    
    // null role
    assertFalse(zms.dbService.isTrustRole(null));
    
    // null trust
    Role role = new Role().setName("domain1:role.role1").setTrust(null);
    assertFalse(zms.dbService.isTrustRole(role));
    // empty trust
    role = new Role().setName("domain1:role.role1").setTrust("");
    assertFalse(zms.dbService.isTrustRole(role));
    
    // with trust
    role = new Role().setName("domain1:role.role1").setTrust("domain2");
    assertTrue(zms.dbService.isTrustRole(role));
}