@AfterClass
public static void closeDB() {
try {
Collection root = DatabaseManager.getCollection(XmldbURI.LOCAL_DB, "admin", "");
CollectionManagementService cmgr = (CollectionManagementService) root.getService("CollectionManagementService", "1.0");
cmgr.removeCollection("test");
// Collection configRoot = DatabaseManager.getCollection("xmldb:exist://" + CollectionConfigurationManager.CONFIG_COLLECTION,
// "admin", null);
// cmgr = (CollectionManagementService) configRoot.getService("CollectionManagementService", "1.0");
// cmgr.removeCollection("db");