  @Test public void testWithBadTransform() throws Exception {

    final File badStyleSheetFile = new File(getDirectory(), "bad.xsl");
    badStyleSheetFile.createNewFile();

    final ProcessHTTPRecordingWithXSLT processor =
      new ProcessHTTPRecordingWithXSLT(
        new StyleSheetFile(badStyleSheetFile),
        m_out,
        m_logger);

    final HttpRecordingDocument emptyDocument =
      HttpRecordingDocument.Factory.newInstance();

    // Redirect streams, because XSLTC still chucks some stuff out to stderr.
    new RedirectStandardStreams() {
      protected void runWithRedirectedStreams() throws Exception {
        processor.process(emptyDocument);
    }}.run();

    verify(m_logger, atLeastOnce()).error(isA(String.class));

    // Processor might log multiple messages; ignore.
    // m_loggerStubFactory.assertNoMoreCalls();
  }