@Test
  public void testOptionsWithURIResolver() throws Exception {
    Options options = Options.getFrom("DOCX");
    OptionsHelper.setURIResolver(
        options,
        new IURIResolver() {

          public String resolve(String uri) {
            return null;
          }
        });
    XHTMLOptions xhtmlOptions = XWPF2XHTMLConverter.getInstance().toXHTMLOptions(options);
    Assert.assertNotNull(xhtmlOptions);
    Assert.assertNotNull(xhtmlOptions.getURIResolver());
  }
  @Test
  public void testWithSubOptions() throws Exception {
    XHTMLOptions xhtmlOptions1 =
        XHTMLOptions.create()
            .URIResolver(
                new org.apache.poi.xwpf.converter.core.IURIResolver() {

                  public String resolve(String uri) {
                    return uri;
                  }
                });
    Options options = Options.getFrom("DOCX").subOptions(xhtmlOptions1);
    XHTMLOptions xhtmlOptions2 = XWPF2XHTMLConverter.getInstance().toXHTMLOptions(options);
    Assert.assertNotNull(xhtmlOptions2);
    Assert.assertEquals(xhtmlOptions1, xhtmlOptions2);
  }