@Test
public void testJsonDecode()
{

    PersonRepresentation personRepresentation = assertValidates(decodeJson(codec, jsonStructure));
    assertThat(personRepresentation.toPerson()).isEqualTo(createPerson("foo@example.com", "Mr Foo"));
}