@Test
public void ensureSearchResultNewBuilderWorks() {

    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 SearchResultBuilder searchResultBuilder = SearchResult.newBuilder()
            .addAll(items)
            .nextPageOffset(nextPageOffset);
    assertThat(searchResult).isEqualTo(searchResultBuilder.build());
}