@Test
public void jsWaitingEventIsConstructedCorrectly() {

    SearchContextFunction contextProvider = webDriver1 -> webDriver1;
    ClickClassByText clickClassByText = new ClickClassByText(initialCollectorClass, text, expectsHttp, contextProvider);
    String expected = CLICK_CLASS_BY_TEXT + " " + initialCollectorClass + " " + text;
    String actual = clickClassByText.getJSEventToWaitFor();
    assertEquals(expected, actual);
}