public function testAdviceIsNotCalledAfterInvocation()
{
$sequence = [];
$advice = $this->getAdvice($sequence);
$invocation = $this->getInvocation($sequence);
$interceptor = new AfterThrowingInterceptor($advice);
$result = $interceptor->invoke($invocation);
$this->assertEquals('invocation', $result, "Advice should not affect the return value of invocation");
$this->assertEquals(array('invocation'), $sequence, "Advice should not be invoked");
}