@Test
public void testHasOutdatedKnownURI() throws UnknownHostException {

    CrawleableUri uri = factory.create(URI.create("http://example.org/uri_1"), InetAddress.getByName("127.0.0.1"),
            UriType.UNKNOWN);
    long timestamp = 100000;
    long invalidationTime = 100000;
    r.db("squirrel").table("knownurifilter").insert(convertURITimestampToRDB(uri, timestamp)).run(rdbConnector.connection);
    Cursor cursor = r.db("squirrel")
            .table("knownurifilter")
            .getAll(uri.getUri().toString())
            .optArg("index", "uri")
            //.g("timestamp")
            .run(rdbConnector.connection);
    assert(cursor.hasNext());
    HashMap crawleableUri = (HashMap) cursor.next();
    long retrievedTimestamp = (long) crawleableUri.get("timestamp");
    assert((System.currentTimeMillis() - retrievedTimestamp) > invalidationTime);
    cursor.close();
}