failed-mockery code