class KeenClient {

    public void addEvent(String eventCollection, Map<String, Object> event) {
        addEvent(eventCollection, event, null);
    }

}

class KeenClientTest {

    private static KeenProject TEST_PROJECT;
    private static List<Map<String, Object>> TEST_EVENTS;
    private static final String TEST_COLLECTION;
    private static final String TEST_COLLECTION_2;
    private static final String POST_EVENT_SUCCESS;
    private static ObjectMapper JSON_MAPPER;
    private KeenClient client;
    private HttpHandler mockHttpHandler;

    @Test
    public void testAddEventWithPlus() throws Exception{

        setMockResponse(200, POST_EVENT_SUCCESS);

        client.addEvent("Test+test", TEST_EVENTS.get(0), null);

        ArgumentCaptor<Request> capturedRequest = ArgumentCaptor.forClass(Request.class);
        verify(mockHttpHandler).execute(capturedRequest.capture());
        assertThat(capturedRequest.getValue().url.toString(), endsWith("Test+test"));
    }

}