@Test
public void testCheckRoleMemberValidityExpiredGroupMember() {

    List<RoleMember> roleMembers = new ArrayList<>();
    // valid members
    RoleMember roleGroup1  = new RoleMember()
            .setMemberName("coretech:group.dev-team")
            .setExpiration(Timestamp.fromMillis(1000))
            .setPrincipalType(Principal.Type.GROUP.getValue());
    roleMembers.add(roleGroup1);
    // carry out the checks
    assertFalse(AuthzHelper.checkRoleMemberValidity(roleMembers, "user.joe", devTeamFetcher));
    assertFalse(AuthzHelper.checkRoleMemberValidity(roleMembers, "user.jane", devTeamFetcher));
    assertFalse(AuthzHelper.checkRoleMemberValidity(roleMembers, "user.john", devTeamFetcher));
    assertFalse(AuthzHelper.checkRoleMemberValidity(roleMembers, "user.valid", devTeamFetcher));
    assertFalse(AuthzHelper.checkRoleMemberValidity(roleMembers, "user.disabled", devTeamFetcher));
    assertFalse(AuthzHelper.checkRoleMemberValidity(roleMembers, "user.expired", devTeamFetcher));
    assertFalse(AuthzHelper.checkRoleMemberValidity(roleMembers, "user.unknown", devTeamFetcher));
}