package com.juick.tests; import com.google.gson.Gson; import static org.junit.Assert.assertEquals; import org.junit.Test; import com.juick.Message; public class JsonTests { @Test public void CompareSerializers() { Message msg = new Message(); msg.ReplyTo = 1; msg.MID = 234566; Gson gson = new Gson(); String gsonResult = gson.toJson(msg); String ugnichResult = com.juick.json.Message.toJSON(msg).toString(); System.out.println(gsonResult); System.out.println(ugnichResult); assertEquals("our result must equal to ugnich", ugnichResult, gsonResult); } }