public function testDeleteFailure()
{
$handler = $this->getSectionHandler();
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('countContentObjectsInSection')->with($this->equalTo(23))->will($this->returnValue(2));
$gatewayMock->expects($this->never())->method('deleteSection');
$result = $handler->delete(23);
}