public virtual void testQueryByMember() { GroupQuery query = identityService.createGroupQuery().groupMember("fozzie"); verifyQueryResults(query, 2); query = identityService.createGroupQuery().groupMember("kermit"); verifyQueryResults(query, 3); query = query.orderByGroupId().asc(); IList <Group> groups = query.list(); assertEquals(3, groups.Count); assertEquals("admin", groups[0].Id); assertEquals("frogs", groups[1].Id); assertEquals("muppets", groups[2].Id); query = query.groupType("user"); groups = query.list(); assertEquals(2, groups.Count); assertEquals("frogs", groups[0].Id); assertEquals("muppets", groups[1].Id); }