@Test
public void firstInList() throws Exception {

    Type compositeType = Converter.first(TestData.class, "content");
    TestData data = fromJson(compositeType, "{\n"
          + "  \"content\": [\n"
          + "    {\n"
          + "      \"str\": \"zero\",\n"
          + "      \"val\": 0\n"
          + "    },\n"
          + "    {\n"
          + "      \"str\": \"one\",\n"
          + "      \"val\": 1\n"
          + "    },\n"
          + "    {\n"
          + "      \"str\": \"two\",\n"
          + "      \"val\": 2\n"
          + "    }\n"
          + "  ]\n"
          + '}');
    assertThat(data).isNotNull();
    assertThat(data.str).isEqualTo("zero");
    assertThat(data.val).isEqualTo(0);
}