public function testChangesAttributes()
 {
     $id = 1232;
     $name = 'name';
     $description = 'description';
     $resourceType = new ResourceType($id, $name, $description);
     $resourceType->ChangeAttributes(array(new AttributeValue(1, 'val')));
     $attributeVals = array(new AttributeValue(1, 'val'));
     $this->page->expects($this->once())->method('GetId')->will($this->returnValue($id));
     $this->page->expects($this->once())->method('GetAttributes')->will($this->returnValue($attributeVals));
     $this->resourceRepository->expects($this->once())->method('LoadResourceType')->with($this->equalTo($id))->will($this->returnValue($resourceType));
     $this->resourceRepository->expects($this->once())->method('UpdateResourceType')->with($this->equalTo($resourceType));
     $this->presenter->ChangeAttributes();
 }