@Ignore
@Test
public void testPageNotInCache() throws PlatformInitializationException, ContentIOException,
  ReportProcessingException, IOException,
  ResourceException {

  ClassicEngineBoot.getInstance().start();
  MicroPlatform microPlatform = MicroPlatformFactory.create();
  try {
    microPlatform.define( ReportOutputHandlerFactory.class, FastExportReportOutputHandlerFactory.class );
    final IReportContentCache mockCache = mock( IReportContentCache.class );
    final IReportContent iReportContent = mock( IReportContent.class );
    when( iReportContent.getPageData( 3 ) ).thenReturn( null );
    final String key = "test";
    when( mockCache.get( key ) ).thenReturn( iReportContent );
    final IPluginCacheManager iPluginCacheManager =
      new PluginCacheManagerImpl( mockCache );
    microPlatform.define( "IPluginCacheManager", iPluginCacheManager );
    microPlatform.start();
    final IPentahoSession session = new StandaloneSession();
    PentahoSessionHolder.setSession( session );
    final CachingPageableHTMLOutput cachingPageableHTMLOutput = spy( new CachingPageableHTMLOutput() );
    final ResourceManager mgr = new ResourceManager();
    final File src = new File( "target/test/resource/solution/test/reporting/report1.prpt" );
    final MasterReport r = (MasterReport) mgr.createDirectly( src, MasterReport.class ).getResource();
    r.setContentCacheKey( key );
    cachingPageableHTMLOutput.generate( r, 3, mock( OutputStream.class ), 1 );
    verify( cachingPageableHTMLOutput, times( 1 ) ).regenerateCache( r, 1, key, 3 );
  } finally {
    microPlatform.stop();
    microPlatform = null;
  }
}