@Test
public void canCaptureErrorDuringExecution() {

  sqlService.execute(
      new SQLQueryRequest(new JSONObject(), "SELECT", "_opendistro/_sql", ""),
      new ResponseListener<QueryResponse>() {
        @Override
        public void onResponse(QueryResponse response) {
          fail();
        }
        @Override
        public void onFailure(Exception e) {
          assertNotNull(e);
        }
      });
}