Fix the assertions in the Java messaging integration test.