public function testApiSetException_SetsException_WhenExceptionIsSetAndOverwriteFlagIsSet()
{
$protocol = $this->createProtocol('', '', '', '', '', 'exceptionOld');
$this->assertSame('exceptionOld', $protocol->getException());
$protocol->setException('exception', true);
$this->assertSame('exception', $protocol->getException());
}