@@ -0,0 +1,1733 @@
+package net.lvsq.jgossip;%0A%0Aimport io.vertx.core.json.JsonObject;%0Aimport net.lvsq.jgossip.model.AckMessage;%0Aimport net.lvsq.jgossip.model.GossipDigest;%0Aimport net.lvsq.jgossip.model.GossipMember;%0Aimport net.lvsq.jgossip.model.GossipState;%0Aimport net.lvsq.jgossip.model.HeartbeatState;%0Aimport org.junit.Test;%0A%0Aimport java.net.InetSocketAddress;%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Apublic class TestAckMessage %7B%0A    AckMessage ackMessage = new AckMessage();%0A%0A%0A    public void init() %7B%0A        List%3CGossipDigest%3E olders = new ArrayList%3C%3E();%0A        Map%3CGossipMember, HeartbeatState%3E newers = new HashMap%3C%3E();%0A%0A        GossipDigest digest = new GossipDigest();%0A        digest.setEndpoint(new InetSocketAddress(123));%0A        digest.setHeartbeatTime(123445);%0A        digest.setVersion(1);%0A        olders.add(digest);%0A%0A        GossipMember member = new GossipMember();%0A        member.setCluster(%22cluster%22);%0A        member.setPort(33);%0A        member.setIpAddress(%22ip%22);%0A        member.setId(%22id%22);%0A        member.setState(GossipState.DOWN);%0A%0A        HeartbeatState state = new HeartbeatState();%0A        state.setHeartbeatTime(123);%0A        state.setVersion(1);%0A%0A        newers.put(member, state);%0A%0A        ackMessage.setOlders(olders);%0A        ackMessage.setNewers(newers);%0A    %7D%0A%0A    @Test%0A    public void encode() %7B%0A        init();%0A        String j = JsonObject.mapFrom(ackMessage).encode();%0A        System.out.println(j);%0A    %7D%0A%0A    @Test%0A    public void decode() %7B%0A        init();%0A        String j = JsonObject.mapFrom(ackMessage).encode();%0A        AckMessage member1 = (new JsonObject(j)).mapTo(AckMessage.class);%0A        System.out.println(member1.getNewers());%0A    %7D%0A%7D%0A

Create TestAckMessage.java