@Test
public void sendError() throws Exception {

  Exception exception = new IndexOutOfBoundsException("The reason is what it is!");
  doNothing().when(underTest).sendEvent(any());
  underTest.sendError(exception);
  verify(underTest).sendEvent(new Error("The reason is what it is!"));
}