package productcatalog.common;

import io.sphere.sdk.products.ProductProjection;
import io.sphere.sdk.products.queries.ProductProjectionQuery;
import io.sphere.sdk.queries.PagedQueryResult;

import java.util.List;

import static io.sphere.sdk.json.JsonUtils.readObjectFromResource;

public class ProductTestData {

    private final PagedQueryResult<ProductProjection> queryResult =
            readObjectFromResource("productProjectionQueryResult.json", ProductProjectionQuery.resultTypeReference());

    private ProductTestData() {

    }

    public static ProductTestData of() {
        return new ProductTestData();
    }

    public List<ProductProjection> getProducts() {
        return queryResult.getResults();
    }
}

@@ -614,32 +614,133 @@
 tData();%0A    %7D%0A%0A
+    public PagedQueryResult%3CProductProjection%3E getQueryResult() %7B%0A        return queryResult;%0A    %7D%0A%0A
     public List%3C

Update ProductTestData to return PagedQueryResult