@Test public void handleAbsOnFileUris() {

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