public function testContent() {
$targetDocument = new TargetDocument();
$this->document
->expects($this
->once())
->method('getRouteContent')
->will($this
->returnValue($targetDocument));
$defaults = array(
RouteObjectInterface::ROUTE_OBJECT => $this->document,
);
$expected = array(
RouteObjectInterface::ROUTE_OBJECT => $this->document,
'_content' => $targetDocument,
);
$this
->assertEquals($expected, $this->mapper
->enhance($defaults, $this->request));
}