### Question:
AnalyticsEvent implements AnalyticsEventClient, PageLoader<AnalyticEvent> { public void loadPage(int page, int pageSize, PageResponseListener<AnalyticEvent> listener, ResponseErrorListener responseErrorListener) { RequestBuilder requestBuilder = new RequestBuilder() .stringRequest(response -> { try { JSONObject jsonObject = new JSONObject(response); listener.onResponse(analyticEventPageJsonSerializer.deserialize(jsonObject)); } catch (JSONException e) { responseErrorListener.onErrorResponse(new ServerException("could not parse response ", e)); } }) .setMethod(Request.Method.GET) .setUrl("/analytics/sessions/" + sessionId + "/events?currentPage=" + page + "&pageSize=" + pageSize) .setErrorListener(error -> { if (error.networkResponse.statusCode >= 500) { responseErrorListener.onErrorResponse(new ServerException("ServerException " + error.networkResponse.statusCode, error)); } else if (error.networkResponse.statusCode >= 400) { responseErrorListener.onErrorResponse(new ClientException("ClientException " + error.networkResponse.statusCode, error)); } }); requestExecutor.execute(requestBuilder); } AnalyticsEvent(RequestExecutor requestExecutor, PageJsonSerializer<AnalyticEvent> analyticEventPageJsonSerializer); Pager<AnalyticEvent> list(String sessionId, int pageSize); Pager<AnalyticEvent> list(String sessionId); void loadPage(int page, int pageSize, PageResponseListener<AnalyticEvent> listener, ResponseErrorListener responseErrorListener);  }### Answer:
@Test public void loadPage() { int page = 1; int pageSize = 50; analyticsEvent.loadPage( page, pageSize, null, null); assertTrue(requestExecutor.getRequestBuilder().getUrl().endsWith("/analytics/sessions/" + null + "/events?currentPage=" + page + "&pageSize=" + pageSize)); assertEquals(requestExecutor.getRequestBuilder().getMethod(), Request.Method.GET); }