### Question:
EventsClientRest extends BaseClientRest implements EventsClient { @Override public void getMarket(MarketRequest marketRequest, StreamObserver<Market> marketObserver) { String url = buildSportsUrl(marketRequest.resourcePath()); getRequest(url, marketRequest, marketObserver, new MarketReader()); } 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 market") void getMarketTest() { MarketRequest marketRequest = mock(MarketRequest.class); when(marketRequest.resourcePath()).thenReturn("path/42"); when(marketRequest.parameters()).thenReturn(Collections.emptyMap()); StreamObserver<Market> streamObserver = (StreamObserver<Market>) mock(StreamObserver.class); unit.getMarket(marketRequest, streamObserver); verify(httpClient).get(eq("https: }