public final void testInsertDocumentStringStringFail() throws Exception {

    String xml = "<foo><bar/></foo>";
    String id = "failtest.xml";

    VirtualCollectionImpl vc = this.getMyVC();
    try {
      vc.insertDocument(id, xml);
      assertTrue(EXPECTED_EXCEPTION, false);
    } catch (XMLDBException e) {
      assertTrue(INVALID_COLL_MSG + e.errorCode, this.isInvalidColl(e.errorCode));
    }
  }
  public final void testInsertDocumentStringURLFail() throws Exception {

    String id = "failtest.xml";
    URL url = new File("data/test/conf.xml").toURL();

    VirtualCollectionImpl vc = this.getMyVC();

    try {
      vc.insertDocument(id, url);
      assertTrue(EXPECTED_EXCEPTION, false);
    } catch (XMLDBException e) {
      assertTrue(INVALID_COLL_MSG + e.errorCode, this.isInvalidColl(e.errorCode));
    }
  }