public function testAddsResourceGroup()
 {
     $name = 'gn';
     $parentId = 123;
     $group = ResourceGroup::Create($name, $parentId);
     $id = 99292;
     $this->db->_ExpectedInsertId = $id;
     $addedGroup = $this->repository->AddResourceGroup($group);
     $expectedCommand = new AddResourceGroupCommand($name, $parentId);
     $this->assertEquals($expectedCommand, $this->db->_LastCommand);
     $this->assertEquals($id, $addedGroup->id);
 }