WebElementListGenerator { public String toString() { return callingCommand + "(" + passedValue + ")"; } WebElementListGenerator(String command, String value);  WebElementListGenerator(String command); String size(); String toString();  }
@Test public void checkWebElementListReturnsCorrectCode() { assertThat(driver.findElements(locator).toString(), is(equalTo("driver.findElements(" + locator + ")"))); }