@Test
public void testRoleMatchInSetRegex() {

    
    ChangeLogStore clogStore = new MockZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            pkey, "0");
    DataStore store = new DataStore(clogStore, null);
    Set<MemberRole> checkSet = new HashSet<>();
    checkSet.add(new MemberRole("coretech:role.readers", 0));
    checkSet.add(new MemberRole("coretech:role.writers", 0));
    checkSet.add(new MemberRole("*:role.update", 0));
    checkSet.add(new MemberRole("weather:role.*", 0));
    
    assertTrue(store.roleMatchInSet("coretech:role.readers", checkSet));
    assertTrue(store.roleMatchInSet("coretech:role.writers", checkSet));
    assertTrue(store.roleMatchInSet("sports:role.update", checkSet));
    assertTrue(store.roleMatchInSet("weather:role.update", checkSet));
    assertFalse(store.roleMatchInSet("coretech:role.admin", checkSet));
}