### Question:
EventsClientRest extends BaseClientRest implements EventsClient { @Override public void getEvents(EventsRequest eventsRequest, StreamObserver<Event> eventsObserver) { String url = buildSportsUrl(eventsRequest.resourcePath()); getRequest(url, eventsRequest, eventsObserver, new EventsReader()); } EventsClientRest(ConnectionManager connectionManager); @Override void getSports(SportsRequest sportsRequest, StreamObserver<Sport> sportsObserver); @Override void getEvent(EventRequest eventRequest, StreamObserver<Event> eventObserver); @Override void getEvents(EventsRequest eventsRequest, StreamObserver<Event> eventsObserver); @Override void getMarket(MarketRequest marketRequest, StreamObserver<Market> marketObserver); @Override void getMarkets(MarketsRequest marketsRequest, StreamObserver<Market> marketsObserver); @Override void getRunner(RunnerRequest runnerRequest, StreamObserver<Runner> runnerObserver); @Override void getRunners(RunnersRequest runnersRequest, StreamObserver<Runner> runnersObserver);  }### Answer:
@Test @DisplayName("GET events") void getEventsTest() { EventsRequest eventsRequest = mock(EventsRequest.class); when(eventsRequest.resourcePath()).thenReturn("path"); when(eventsRequest.parameters()).thenReturn(Collections.singletonMap("param", "value")); StreamObserver<Event> streamObserver = (StreamObserver<Event>) mock(StreamObserver.class); unit.getEvents(eventsRequest, streamObserver); verify(httpClient).get(eq("https: }