public function testGetContentCount()
{
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('countInstancesOfType')->with($this->equalTo(23))->will($this->returnValue(42));
$handler = $this->getHandler();
$this->assertEquals(42, $handler->getContentCount(23));
}