public final void testQueryResource2() throws Exception {
    VirtualCollection vc = (VirtualCollection) this.dbColl.getChildCollection("vcl-data/myvc");

    VirtualResource vr = (VirtualResource) vc.getResource("virtual_autoren3.vxml");

    Document doc = (Document) vr.getContentAsDOM();
    Element articles = (Element) doc.getElementsByTagName("articles").item(0);

    assertEquals(4, articles.getElementsByTagName("*").getLength());
  }
  public final void testGetPCVResourceSuccess() throws Exception {
    VirtualCollection vcoll = this.getMyVC();

    String[] names = vcoll.listResources();
    assertTrue("Expected resource names and not an empty array.", 0 != names.length);

    Resource res = vcoll.getResource(names[0]);
    assertTrue(
        "Expected instance of VirtualResource and not " + res.getClass(),
        res instanceof VirtualResource);

    VirtualResource vres = (VirtualResource) res;

    PCVResource pres = vres.getPreCompiledResource();
    assertNotNull("Expected pres to be not null", pres);

    assertTrue(
        "Expected instance of PCVResource and not " + res.getClass(), pres instanceof PCVResource);

    assertEquals(vres.getId(), pres.getId());
  }