@Test
public void testCompareRoleSets() {

    Set<String> set1 = new HashSet<>();
    Set<String> set2 = new HashSet<>();
    // empty sets should match
    
    assertTrue(zts.compareRoleSets(set1, set2));
    
    // not the same size so mismatch
    
    set1.add("role1");
    set1.add("role2");
    
    set2.add("role1");
    
    assertFalse(zts.compareRoleSets(set1, set2));
    
    // same size different values
    
    set2.add("role3");
    
    assertFalse(zts.compareRoleSets(set1, set2));
    // same values in both
    
    set1.add("role3");
    set2.add("role2");
    
    assertTrue(zts.compareRoleSets(set1, set2));
}