private static final JsonCodec<SimpleMarker> codec = JsonCodec.jsonCodec(SimpleMarker.class);
@Test
public void testRoundTrip()
{
SimpleMarker expected = new SimpleMarker(true, new SerializableNativeValue(Long.class, new Long(10)));
assertEquals(codec.fromJson(codec.toJson(expected)), expected);
expected = new SimpleMarker(false, new SerializableNativeValue(Double.class, new Double(10)));
assertEquals(codec.fromJson(codec.toJson(expected)), expected);
expected = new SimpleMarker(true, new SerializableNativeValue(Boolean.class, new Boolean(true)));
assertEquals(codec.fromJson(codec.toJson(expected)), expected);
expected = new SimpleMarker(true, new SerializableNativeValue(String.class, new String("123")));
assertEquals(codec.fromJson(codec.toJson(expected)), expected);
}