public function testMoveSubtree()
{
$handler = $this->getLocationHandler();
$sourceData = array('node_id' => 69, 'path_string' => '/1/2/69/', 'parent_node_id' => 2, 'contentobject_id' => 67);
$this->locationGateway->expects($this->at(0))->method('getBasicNodeData')->with(69)->will($this->returnValue($sourceData));
$destinationData = array('node_id' => 77, 'path_string' => '/1/2/77/');
$this->locationGateway->expects($this->at(1))->method('getBasicNodeData')->with(77)->will($this->returnValue($destinationData));
$this->locationGateway->expects($this->once())->method('moveSubtreeNodes')->with($sourceData, $destinationData);
$this->locationGateway->expects($this->once())->method('updateNodeAssignment')->with(67, 2, 77, 5);
$handler->move(69, 77);
}