public function testGetsGroupsWithPermission()
 {
     $resourceId = 123;
     $rows = array(array(ColumnNames::GROUP_ID => 1, ColumnNames::GROUP_NAME => 'g1'), array(ColumnNames::GROUP_ID => 2, ColumnNames::GROUP_NAME => 'g2'));
     $this->db->SetRows($rows);
     $list = $this->repository->GetGroupsWithPermission($resourceId);
     $this->assertTrue($this->db->ContainsCommand(new GetResourceGroupPermissionCommand($resourceId)));
     $this->assertEquals(2, $list->PageInfo()->Total);
 }