public void testGetServicesClosedFail() throws Exception {
   this.getMyVC();
   VirtualCollection vc = this.getMyVC();
   vc.close();
   try {
     vc.getServices();
     assertTrue(false);
   } catch (XMLDBException e) {
     assertEquals(ErrorCodes.COLLECTION_CLOSED, e.errorCode);
   }
 }
  public void testSetStylesheetClosedFail() throws Exception {
    VirtualCollection vc = this.getMyVC();
    vc.close();

    try {
      URL url = null;
      vc.setStylesheet(url);
      assertTrue(false);
    } catch (XMLDBException e) {
      assertEquals(ErrorCodes.COLLECTION_CLOSED, e.errorCode);
    }
  }