public function testDeleteSuccess()
{
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('countInstancesOfType')->with($this->equalTo(23))->will($this->returnValue(0));
$gatewayMock->expects($this->once())->method('delete')->with($this->equalTo(23), $this->equalTo(0));
$handler = $this->getHandler();
$res = $handler->delete(23, 0);
$this->assertTrue($res);
}