AMQP-323 Fix Broken Mock Tests

Verify close(int) method instead of close().