@Override
 protected void handleParsedResponse(
     final TransportResponse response, final TransportResponseHandler handler) {
   ElasticsearchAssertions.assertVersionSerializable(
       VersionUtils.randomVersionBetween(random, minVersion, maxVersion), response);
   super.handleParsedResponse(response, handler);
 }
 protected void handleResponse(
     StreamInput buffer, LocalTransport sourceTransport, final TransportResponseHandler handler) {
   buffer = new NamedWriteableAwareStreamInput(buffer, namedWriteableRegistry);
   final TransportResponse response = handler.newInstance();
   response.remoteAddress(sourceTransport.boundAddress.publishAddress());
   try {
     response.readFrom(buffer);
   } catch (Throwable e) {
     handleException(
         handler,
         new TransportSerializationException(
             "Failed to deserialize response of type [" + response.getClass().getName() + "]", e));
     return;
   }
   handleParsedResponse(response, handler);
 }