### Question:
OffersClientRest extends BaseClientRest implements OffersClient { @Override public void cancelOffer(OfferDeleteRequest offerDeleteRequest, StreamObserver<Offer> offerObserver) { String url = buildSportsUrl(offerDeleteRequest.resourcePath()); deleteRequest(url, offerDeleteRequest, offerObserver, new OfferReader()); } 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("DELETE offer") void cancelOfferTest() { when(connectionManager.getHttpClient()).thenReturn(httpClient); OfferDeleteRequest offerDeleteRequest = mock(OfferDeleteRequest.class); when(offerDeleteRequest.resourcePath()).thenReturn("path"); when(offerDeleteRequest.parameters()).thenReturn(Collections.emptyMap()); StreamObserver<Offer> streamObserver = (StreamObserver<Offer>) mock(StreamObserver.class); unit.cancelOffer(offerDeleteRequest, streamObserver); verify(httpClient).delete(eq("https: }