@Test
public void testIsMemberOfGroup() {

    Group group = new Group();
    assertFalse(AuthzHelper.isMemberOfGroup(group.getGroupMembers(), "user.user1"));
    List<GroupMember> members = new ArrayList<>();
    members.add(new GroupMember().setMemberName("user.user1"));
    members.add(new GroupMember().setMemberName("coretech.api"));
    group.setGroupMembers(members);
    assertTrue(AuthzHelper.isMemberOfGroup(group.getGroupMembers(), "user.user1"));
    assertTrue(AuthzHelper.isMemberOfGroup(group.getGroupMembers(), "coretech.api"));
    assertFalse(AuthzHelper.isMemberOfGroup(group.getGroupMembers(), "user.user2"));
    assertFalse(AuthzHelper.isMemberOfGroup(group.getGroupMembers(), "coretech.dev.api"));
}