@Test
    public void testMarshall_Simple() throws Exception {
        Map<String, Comparable> data = new LinkedHashMap<>();
        data.put("hello", "world");
        data.put("foo", "bar");
        data.put("bool", true);

        JsonPayloadIO io = new JsonPayloadIO();
        byte[] bytes = io.marshall(data);
        String actual = new String(bytes);

        String expected = "{\"hello\":\"world\",\"foo\":\"bar\",\"bool\":true}";
        Assert.assertEquals(expected, actual);
    }
Unit Test for {@link JsonPayloadIO}.

@author eric.wittmann@redhat.com
gateway/engine/core/src/test/java/io/apiman/gateway/engine/io/JsonPayloadIOTest.java