@Test
public void toJsonWithRegularFieldTypes() {

    final String itemsArray = "[1,2,3]";
    final JsonArray items = JsonFactory.newArray(itemsArray);
    final long nextPageOffset = 10L;
    final ImmutableSearchResult searchResult = ImmutableSearchResult.of(items, nextPageOffset, null);
    final String jsonStr = searchResult.toJsonString();
    assertThat(jsonStr).isEqualTo("{\"items\":" + itemsArray + ",\"nextPageOffset\":" + nextPageOffset + "}");
}