### Question:
HeartbeatClientRest extends BaseClientRest implements HeartbeatClient { @Override public void unsubscribeHeartbeat(HeartbeatDeleteRequest heartbeatDeleteRequest, StreamObserver<Heartbeat> heartbeatObserver) { String url = buildSportsUrl(heartbeatDeleteRequest.resourcePath()); deleteRequest(url, heartbeatDeleteRequest, heartbeatObserver, new HeartbeatReader()); } HeartbeatClientRest(ConnectionManager connectionManager); @Override void getHeartbeat(HeartbeatGetRequest heartbeatGetRequest, StreamObserver<Heartbeat> heartbeatObserver); @Override void sendHeartbeat(HeartbeatPostRequest heartbeatPostRequest, StreamObserver<Heartbeat> heartbeatObserver); @Override void unsubscribeHeartbeat(HeartbeatDeleteRequest heartbeatDeleteRequest, StreamObserver<Heartbeat> heartbeatObserver);  }### Answer:
@Test @DisplayName("DELETE heartbeat") void unsubscribeHeartbeatTest() { when(connectionManager.getHttpClient()).thenReturn(httpClient); HeartbeatDeleteRequest heartbeatDeleteRequest = mock(HeartbeatDeleteRequest.class); when(heartbeatDeleteRequest.resourcePath()).thenReturn("path"); when(heartbeatDeleteRequest.parameters()).thenReturn(Collections.emptyMap()); StreamObserver<Heartbeat> streamObserver = (StreamObserver<Heartbeat>) mock(StreamObserver.class); unit.unsubscribeHeartbeat(heartbeatDeleteRequest, streamObserver); verify(httpClient).delete(eq("https: }