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