### Question:
HeartbeatClientRest extends BaseClientRest implements HeartbeatClient { @Override public void getHeartbeat(HeartbeatGetRequest heartbeatGetRequest, StreamObserver<Heartbeat> heartbeatObserver) { String url = buildSportsUrl(heartbeatGetRequest.resourcePath()); getRequest(url, heartbeatGetRequest, 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("GET heartbeat") void getHeartbeatTest() { when(connectionManager.getHttpClient()).thenReturn(httpClient); HeartbeatGetRequest heartbeatGetRequest = mock(HeartbeatGetRequest.class); when(heartbeatGetRequest.resourcePath()).thenReturn("path"); when(heartbeatGetRequest.parameters()).thenReturn(Collections.singletonMap("param", "value")); StreamObserver<Heartbeat> streamObserver = (StreamObserver<Heartbeat>) mock(StreamObserver.class); unit.getHeartbeat(heartbeatGetRequest, streamObserver); verify(httpClient).get(eq("https: }