@Test
public void testIsConsistentGroupName() {

    Group group = new Group();
    group.setName("domain1:group.group1");
    assertTrue(zms.isConsistentGroupName("domain1", "group1", group));
    // local name behavior
    group.setName("group1");
    assertTrue(zms.isConsistentGroupName("domain1", "group1", group));
    assertEquals(group.getName(), "domain1:group.group1");
    // inconsistent behavior
    group.setName("domain1:group.group1");
    assertFalse(zms.isConsistentGroupName("domain1", "group2", group));
    group.setName("role1");
    assertFalse(zms.isConsistentGroupName("domain1", "group2", group));
}