@Test
public void testAddEventWithWhitespaceH() throws Exception{

    setMockResponse(200, POST_EVENT_SUCCESS);
    client.addEvent(" H", TEST_EVENTS.get(0), null);
    ArgumentCaptor<Request> capturedRequest = ArgumentCaptor.forClass(Request.class);
    verify(mockHttpHandler).execute(capturedRequest.capture());
    assertThat(capturedRequest.getValue().url.toString(), endsWith("%20H"));
}