public function testDeleteGroupFailure()
{
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('countTypesInGroup')->with($this->equalTo(23))->will($this->returnValue(42));
$gatewayMock->expects($this->never())->method('deleteGroup');
$handler = $this->getHandler();
$handler->deleteGroup(23);
}