@Test
public void checkWebElementGetLocationGetXReturnsCorrectCode() {

    assertThat(driver.findElement(locator).getLocation().getX(), is(equalTo("driver.findElement(" + locator + ").getLocation().getX()")));
}