public final void testDropVirtualCollectionSuccess() throws Exception {
    Collection testColl = this.db.getCollection("/db/vc-colls", "sa", "");

    VirtualCollectionManagementService vcms =
        (VirtualCollectionManagementService)
            testColl.getService("VirtualCollectionManagementService", "1.0");

    int size = testColl.getChildCollectionCount();

    vcms.removeVirtualCollection("test-vc");

    assertEquals(
        "Why is the virtual collection not removed?", size - 1, testColl.getChildCollectionCount());
  }
  public final void testCreateVirtualCollectionSuccess() throws Exception {
    Collection testColl = this.db.getCollection("/db/vc-colls", "sa", "");

    VirtualCollectionManagementService vcms =
        (VirtualCollectionManagementService)
            testColl.getService("VirtualCollectionManagementService", "1.0");

    int size = testColl.getChildCollectionCount();

    VirtualCollection vc =
        vcms.createVirtualCollection(
            "test-vc", new File("data/vcl-schema/author-articles.no.dtd.vcs").toURL());

    assertNotNull("Expected that an instance of VirtualCollection is returned and not null", vc);
    assertTrue(
        "Expected the returns instance is an instance of VirtualCollection and not "
            + vc.getClass(),
        vc instanceof VirtualCollection);

    assertEquals(
        "Why is the virtual collection not inserted but returned?",
        size + 1,
        testColl.getChildCollectionCount());
  }