public void run() {
            GlobalId foo = new GlobalId(IdString.createIdString("id:ns:testdoc::foo"));
            GlobalId bar = new GlobalId(IdString.createIdString("id:ns:testdoc::bar"));

            GetBucketStateReply reply = new GetBucketStateReply();
            List<DocumentState> state = new ArrayList<>(2);
            state.add(new DocumentState(foo, 777, false));
            state.add(new DocumentState(bar, 888, true));
            reply.setBucketState(state);
            assertEquals(53, serialize("GetBucketStateReply", reply));

            for (Language lang : LANGUAGES) {
                reply = (GetBucketStateReply)deserialize("GetBucketStateReply", DocumentProtocol.REPLY_GETBUCKETSTATE, lang);
                assertEquals(777, reply.getBucketState().get(0).getTimestamp());
                assertEquals(foo, reply.getBucketState().get(0).getGid());
                assertEquals(false, reply.getBucketState().get(0).isRemoveEntry());
                assertEquals(888, reply.getBucketState().get(1).getTimestamp());
                assertEquals(bar, reply.getBucketState().get(1).getGid());
                assertEquals(true, reply.getBucketState().get(1).isRemoveEntry());
            }
        }
@author Simon Thoresen Hult
@author Vegard Sjonfjell
documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/Messages60TestCase.java