@Test
public void isMemberContextGroupId() throws SQLException, AuthorizeException, EPersonDeletionException, IOException {

    EPerson ePerson = null;
    try {
        ePerson = createEPersonAndAddToGroup("isMemberContextGroupId@dspace.org", level2Group);
        assertTrue(groupService.isMember(context, ePerson, topGroup.getName()));
        assertTrue(groupService.isMember(context, ePerson, level1Group.getName()));
        assertTrue(groupService.isMember(context, ePerson, level2Group.getName()));
    } finally {
        if(ePerson != null)
        {
            context.turnOffAuthorisationSystem();
            ePersonService.delete(context, ePerson);
        }
    }
}