### Question:
HttpClientExecutable extends AbstractHttpExecutable<HttpUriRequest> implements BeanNameAware { @Override public TransportMetrics getTransportMetrics() { return metrics; } HttpClientExecutable(final HttpServiceBindingDescriptor bindingDescriptor,
                                final ContextEmitter emission,
                                final Tracer tracer);  HttpClientExecutable(final HttpServiceBindingDescriptor bindingDescriptor, ContextEmitter emission, Tracer tracer, CougarClientConnManager clientConnectionManager); @Override void setBeanName(String name); void init(); void setRetryHandler(final HttpRequestRetryHandler retryHandler); void setClient(final HttpClient client); void setJmxControl(JMXControl jmxControl); void setUserTokenHandler(UserTokenHandler userTokenHandler); @Override TransportMetrics getTransportMetrics(); void setMaxTotalConnections(int maxTotalConnections); void setMaxPerRouteConnections(int maxPerRouteConnections);  }### Answer:
@Test public void shouldReturnTransportMetrics() throws Exception { when(mockManager.getConnectionsInPool()).thenReturn(4); when(mockManager.getFreeConnections()).thenReturn(2); when(mockManager.getDefaultMaxPerRoute()).thenReturn(10); assertEquals(4, client.getTransportMetrics().getOpenConnections()); assertEquals(2, client.getTransportMetrics().getFreeConnections()); assertEquals(10, client.getTransportMetrics().getMaximumConnections()); assertEquals(20, client.getTransportMetrics().getCurrentLoad()); }