@Test
public void testJsonCodec()
{

    JsonCodec<Person> jsonCodec = jsonCodecFactory.jsonCodec(Person.class);
    Person expected = new Person().setName("dain").setRocks(true);
    String json = jsonCodec.toJson(expected);
    Person actual = jsonCodec.fromJson(json);
    assertEquals(actual, expected);
}