public function testCanGetRemovedNodes()
{
$node1 = M::mock(array('getName' => 'foobar'));
$node2 = M::mock(array('getName' => 'foobaz'));
$this->base_tree_mock->shouldReceive('getNodes')->andReturn(array($node1, $node2));
$this->comp_tree_mock->shouldReceive('hasNodeNamed')->with('foobar')->andReturn(true);
$this->comp_tree_mock->shouldReceive('hasNodeNamed')->with('foobaz')->andReturn(false);
$this->assertEquals(array($node2), $this->diff->getRemovedNodes());
}