public function testGetFieldDefinition()
{
$contentType = new ContentType($this->contentTypeServiceMock, array('fieldDefinitionListReference' => '/content/types/23/fieldDefinitions'));
$contentTypeServiceMock = $this->contentTypeServiceMock;
$contentTypeServiceMock->expects($this->once())->method('loadFieldDefinitionList')->with($this->equalTo('/content/types/23/fieldDefinitions'))->will($this->returnValue($this->getFieldDefinitionListMock()));
$fieldDefinitions = $this->getFieldDefinitions();
$this->assertEquals($fieldDefinitions[1], $contentType->getFieldDefinition('second-field'));
}