@Test public void handleFinish_errorRecordedInSpan() {

  RuntimeException error = new RuntimeException("foo");
  when(response.error()).thenReturn(error);
  handler.handleFinish(response, span);
  verify(span).error(error);
}