@Test
public void ifContainsSubmitUrlThenEventIsSubmitted() {

    String url = SUBMIT_EVENT_URL + "ico";
    HttpRequest httpRequest = mock(HttpRequest.class);
    when(httpRequest.getUri()).thenReturn(url);
    UriContainsStringPredicate uriContainsStringPredicate = new UriContainsStringPredicate(SUBMIT_EVENT_URL);
    assertTrue(uriContainsStringPredicate.test(httpRequest));
}