@Test
public void testMemberNameMatch() {

    assertTrue(AuthzHelper.memberNameMatch("*", "user.joe"));
    assertTrue(AuthzHelper.memberNameMatch("*", "athenz.service.storage"));
    assertTrue(AuthzHelper.memberNameMatch("user.*", "user.joe"));
    assertTrue(AuthzHelper.memberNameMatch("athenz.*", "athenz.service.storage"));
    assertTrue(AuthzHelper.memberNameMatch("athenz.service*", "athenz.service.storage"));
    assertTrue(AuthzHelper.memberNameMatch("athenz.service*", "athenz.service-storage"));
    assertTrue(AuthzHelper.memberNameMatch("athenz.service*", "athenz.service"));
    assertTrue(AuthzHelper.memberNameMatch("user.joe", "user.joe"));
    assertFalse(AuthzHelper.memberNameMatch("user.*", "athenz.joe"));
    assertFalse(AuthzHelper.memberNameMatch("athenz.*", "athenztest.joe"));
    assertFalse(AuthzHelper.memberNameMatch("athenz.service*", "athenz.servic"));
    assertFalse(AuthzHelper.memberNameMatch("athenz.service*", "athenz.servictag"));
    assertFalse(AuthzHelper.memberNameMatch("user.joe", "user.joel"));
}