* @throws ClassNotFoundException
* @throws SQLException
*/
@Test
public void testUpdateDocumentPath() throws ClassNotFoundException, SQLException {
DB db = new DB(DB_PATH);
List<Long> docs = db.getDocumentsFromPath(4712);
assertEquals(docs.size(), 1);
docs = db.getDocumentsFromPath(4711);
assertEquals(docs.size(), 1);
db.changeDocumentPath(docs.get(0), 4712);
docs = db.getDocumentsFromPath(4712);
assertEquals(docs.size(), 2);
assertEquals(2, db.getDocumentCount());
db.close();
}