### Question:
OffersClientRest extends BaseClientRest implements OffersClient { @Override public void getCancelledMatchedBets(CancelledMatchedBetsRequest cancelledMatchedBetsRequest, StreamObserver<MatchedBet> cancelledMatchedBetsObserver) { String url = buildSportsUrl(cancelledMatchedBetsRequest.resourcePath()); getRequest(url, cancelledMatchedBetsRequest, cancelledMatchedBetsObserver, new CancelledMatchedBetsReader()); } OffersClientRest(ConnectionManager connectionManager); @Override void getOffer(OfferGetRequest offerGetRequest, StreamObserver<Offer> offerObserver); @Override void getOffers(OffersGetRequest offersGetRequest, StreamObserver<Offer> offersObserver); @Override void getOfferEdit(OfferEditGetRequest offerEditGetRequest, StreamObserver<OfferEdit> offerEditObserver); @Override void getOfferEdits(OfferEditsGetRequest offerEditsGetRequest, StreamObserver<OfferEdit> offerEditsObserver); @Override void getPositions(PositionsRequest positionsRequest, StreamObserver<Position> positionsRequestObserver); @Override void getAggregatedMatchedBets(AggregatedMatchedBetsRequest aggregatedMatchedBetsRequest,
            StreamObserver<AggregatedMatchedBet> aggregatedMatchedBetsObserver); @Override void getCancelledMatchedBets(CancelledMatchedBetsRequest cancelledMatchedBetsRequest,
            StreamObserver<MatchedBet> cancelledMatchedBetsObserver); @Override void submitOffers(OffersPostRequest offersPostRequest, StreamObserver<Offer> offersObserver); @Override void editOffer(OfferPutRequest offerPutRequest, StreamObserver<Offer> offerObserver); @Override void editOffers(OffersPutRequest offersPutRequest, StreamObserver<Offer> offersObserver); @Override void cancelOffer(OfferDeleteRequest offerDeleteRequest, StreamObserver<Offer> offerObserver); @Override void cancelOffers(OffersDeleteRequest offersDeleteRequest, StreamObserver<Offer> offersObserver);  }### Answer:
@Test @DisplayName("GET cancelled matched bets") void getCancelledMatchedBetsTest() { when(connectionManager.getHttpClient()).thenReturn(httpClient); CancelledMatchedBetsRequest cancelledMatchedBetRequest = mock(CancelledMatchedBetsRequest.class); when(cancelledMatchedBetRequest.resourcePath()).thenReturn("path"); when(cancelledMatchedBetRequest.parameters()).thenReturn(Collections.singletonMap("param", "value")); StreamObserver<MatchedBet> streamObserver = (StreamObserver<MatchedBet>) mock(StreamObserver.class); unit.getCancelledMatchedBets(cancelledMatchedBetRequest, streamObserver); verify(httpClient).get(eq("https: }