@Test
public void handleAbsOnLocalhostFileUris() {

    Document doc = Jsoup.parse("<a href='password'>One/a><a href='/var/log/messages'>Two</a>", "file://localhost/etc/");
    Element one = doc.select("a").first();
    assertEquals("file://localhost/etc/password", one.absUrl("href"));
}