public static <T> TransportResponse<T> error(Throwable error, Map<String, String> wireAttrs)
  {
    Map<String, String> caseInsensitiveWireAttrs = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
    caseInsensitiveWireAttrs.putAll(wireAttrs);
    return new TransportResponseImpl<>(null, error, caseInsensitiveWireAttrs);
  }
@Test
  public void testErrorResponse()
  {
    doTestErrorResponse(TransportResponseImpl.error(THROWABLE));
    doTestErrorResponse(TransportResponseImpl.error(THROWABLE, CASE_SENSITIVE_WIRE_ATTRIBUTES));
  }