@Test public void deprecatedHandleSend_oneOfResponseError() {

  brave.Span span = mock(brave.Span.class);
  assertThatThrownBy(() -> handler.handleSend(null, null, span))
    .isInstanceOf(IllegalArgumentException.class)
    .hasMessage("Either the response or error parameters may be null, but not both");
}