### Question:
Paginated { @Valid public List<T> getRows() { return rows; } @JsonCreator  Paginated(@JsonProperty("rows") List<T> rows,
			@JsonProperty("entriesPerPage") long entriesPerPage,
			@JsonProperty("hasNextPage") boolean hasNextPage);  Paginated(final List<T> rows, final long entriesPerPage); @Valid List<T> getRows(); long getEntriesPerPage(); boolean getHasNextPage(); Paginated<O> mapRows(Function<T, O> f);  }### Answer:
@Test public void testJackson() throws IOException { final int entriesPerPage = 10; final boolean hasNextPage = true; List<Source> sourceList = new ArrayList<>(); sourceList.add(new Source("hoge")); Paginated<Source> p1 = new Paginated<>(sourceList, entriesPerPage, hasNextPage); ObjectMapper mapper = new ObjectMapper(); byte[] json = mapper.writeValueAsBytes(p1); Paginated<Source> got = mapper.readValue(json, new TypeReference<Paginated<Source>>() { }); assertEquals(got.getRows().get(0).getN(), "hoge"); }