@Test
public void testGetStagingHandlerFromReport() {

  final ExecuteReportContentHandler handler = new ExecuteReportContentHandler( contentGenerator );
  // no mode from inputs
  inputs.remove( "report-staging-mode" );
  // staging mode set as a field for report:
  when( report.getAttribute(
    eq( AttributeNames.Pentaho.NAMESPACE ),
    eq( AttributeNames.Pentaho.STAGING_MODE ) )
  ).thenReturn( StagingMode.TMPFILE );
  StagingMode mode = handler.getStagingMode( inputs, report );
  assertEquals( StagingMode.TMPFILE, mode );
}