@Test
public void compareMatchingImagesUsingFile() throws Exception {

    driver.get("http://localhost:8081/downloadTest.html");
    File localImage = new File(this.localImage.toURI());
    WebElement remoteImage = driver.findElement(By.id(locator));
    CompareImages imageCompare = new CompareImages(localImage, remoteImage, driver);
    assertThat(imageCompare.compareImages(), is(equalTo(true)));
}