RoutingResponseHandler implements ResponseHandler { @Override public boolean canManageAutoRead() { return delegate.canManageAutoRead(); } RoutingResponseHandler( ResponseHandler delegate, BoltServerAddress address, AccessMode accessMode,
            RoutingErrorHandler errorHandler ); @Override void onSuccess( Map<String,Value> metadata ); @Override void onFailure( Throwable error ); @Override void onRecord( Value[] fields ); @Override boolean canManageAutoRead(); @Override void disableAutoReadManagement();  }
@Test public void shouldDelegateCanManageAutoRead() { ResponseHandler responseHandler = mock( ResponseHandler.class ); RoutingResponseHandler routingResponseHandler = new RoutingResponseHandler( responseHandler, LOCAL_DEFAULT, AccessMode.READ, null ); routingResponseHandler.canManageAutoRead(); verify( responseHandler ).canManageAutoRead(); }