	@Test
	public void testGetOutgoingRelations() throws Exception {

		Connection conn = pool.getConnection();
		ResultSet rs = conn.createStatement().executeQuery(
				"SELECT uri FROM index_resources");

		while (rs.next()) {
			String uriFromDB = rs.getString(1);
			int key = kb.getUriIndex(uriFromDB);

			RemoteCursor cursor = kb
					.getOutgoingRelations(new int[] { key });
			while (cursor.next()) {
				assertEquals(cursor.getInt(1), key);
			}
			cursor.close();

		}
		rs.close();
		conn.close();
		
	}