@Override
    protected void registerTests(Map<Integer, RunnableTest> out) {
        // This list MUST mirror the list of routable factories from the DocumentProtocol constructor that support
        // version 6. When adding tests to this list, please KEEP THEM ORDERED alphabetically like they are now.
        out.put(DocumentProtocol.MESSAGE_CREATEVISITOR, new testCreateVisitorMessage());
        out.put(DocumentProtocol.MESSAGE_DESTROYVISITOR, new testDestroyVisitorMessage());
        out.put(DocumentProtocol.MESSAGE_DOCUMENTLIST, new testDocumentListMessage());
        out.put(DocumentProtocol.MESSAGE_EMPTYBUCKETS, new testEmptyBucketsMessage());
        out.put(DocumentProtocol.MESSAGE_GETBUCKETLIST, new testGetBucketListMessage());
        out.put(DocumentProtocol.MESSAGE_GETBUCKETSTATE, new testGetBucketStateMessage());
        out.put(DocumentProtocol.MESSAGE_GETDOCUMENT, new testGetDocumentMessage());
        out.put(DocumentProtocol.MESSAGE_MAPVISITOR, new testMapVisitorMessage());
        out.put(DocumentProtocol.MESSAGE_PUTDOCUMENT, new testPutDocumentMessage());
        out.put(DocumentProtocol.MESSAGE_QUERYRESULT, new testQueryResultMessage());
        out.put(DocumentProtocol.MESSAGE_REMOVEDOCUMENT, new testRemoveDocumentMessage());
        out.put(DocumentProtocol.MESSAGE_REMOVELOCATION, new testRemoveLocationMessage());
        out.put(DocumentProtocol.MESSAGE_STATBUCKET, new testStatBucketMessage());
        out.put(DocumentProtocol.MESSAGE_UPDATEDOCUMENT, new testUpdateDocumentMessage());
        out.put(DocumentProtocol.MESSAGE_VISITORINFO, new testVisitorInfoMessage());
        out.put(DocumentProtocol.REPLY_CREATEVISITOR, new testCreateVisitorReply());
        out.put(DocumentProtocol.REPLY_DESTROYVISITOR, new testDestroyVisitorReply());
        out.put(DocumentProtocol.REPLY_DOCUMENTIGNORED, new testDocumentIgnoredReply());
        out.put(DocumentProtocol.REPLY_DOCUMENTLIST, new testDocumentListReply());
        out.put(DocumentProtocol.REPLY_EMPTYBUCKETS, new testEmptyBucketsReply());
        out.put(DocumentProtocol.REPLY_GETBUCKETLIST, new testGetBucketListReply());
        out.put(DocumentProtocol.REPLY_GETBUCKETSTATE, new testGetBucketStateReply());
        out.put(DocumentProtocol.REPLY_GETDOCUMENT, new testGetDocumentReply());
        out.put(DocumentProtocol.REPLY_MAPVISITOR, new testMapVisitorReply());
        out.put(DocumentProtocol.REPLY_PUTDOCUMENT, new testPutDocumentReply());
        out.put(DocumentProtocol.REPLY_QUERYRESULT, new testQueryResultReply());
        out.put(DocumentProtocol.REPLY_REMOVEDOCUMENT, new testRemoveDocumentReply());
        out.put(DocumentProtocol.REPLY_REMOVELOCATION, new testRemoveLocationReply());
        out.put(DocumentProtocol.REPLY_STATBUCKET, new testStatBucketReply());
        out.put(DocumentProtocol.REPLY_UPDATEDOCUMENT, new testUpdateDocumentReply());
        out.put(DocumentProtocol.REPLY_VISITORINFO, new testVisitorInfoReply());
        out.put(DocumentProtocol.REPLY_WRONGDISTRIBUTION, new testWrongDistributionReply());
    }
@author Simon Thoresen Hult
@author Vegard Sjonfjell
documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/Messages60TestCase.java