@Test public void deprecatedHandleReceive_finishesSpanEvenIfUnwrappedNull_withError() {

  brave.Span span = mock(brave.Span.class);
  when(span.context()).thenReturn(context);
  when(span.customizer()).thenReturn(span);
  Exception error = new RuntimeException("peanuts");
  handler.handleReceive(mock(HttpClientResponse.class), error, span);
  verify(span).isNoop();
  verify(span).context();
  verify(span).customizer();
  verify(span).error(error);
  verify(span).finish();
  verifyNoMoreInteractions(span);
}