Java: best practices possibly:
Image matching:
http://testautomation.applitools.com/post/109308544377/how-to-handle-visual-testing-false-positives-part
False positives
http://sauceio.com/index.php/2015/05/qa-reducing-false-positives-in-automated-testing/