public synchronized boolean sendHttpEvent(SplunkEvent event) {
    return sendHttpEvents(Collections.singletonList(event));
  }
@Test
  public void testSendHttpEventsShouldThrowErrorWhenHttpClientFailsToExecuteRequest()
      throws IOException {
    SplunkEvent event = SplunkEvent.newBuilder().withEvent(EVENT).create();

    CloseableHttpClient mockHttpClient = clientFactory.getHttpClient();
    doThrow(IOException.class).when(mockHttpClient).execute(any(HttpPost.class));

    assertThrows(SplunkResourceManagerException.class, () -> testManager.sendHttpEvent(event));
  }