@Test
public void testGetStagingModeFromInputs() {

  final ExecuteReportContentHandler handler = new ExecuteReportContentHandler( contentGenerator );
  // we have set default value to THRU
  StagingMode mode = (StagingMode) inputs.get( "report-staging-mode" );
  assertEquals( StagingMode.THRU, mode );
  mode = handler.getStagingMode( inputs, report );
  assertEquals( StagingMode.THRU, mode );
  inputs.put( "report-staging-mode", StagingMode.MEMORY );
  mode = handler.getStagingMode( inputs, report );
  assertEquals( StagingMode.MEMORY, mode );
}