@Test
public void testCreateOutputHandlerForOutputtype() throws Exception {

  MasterReport report = mock( MasterReport.class );
  Configuration config = mock( Configuration.class );
  doReturn( config ).when( report ).getConfiguration();
  doNothing().when( report ).setReportEnvironment( any( ReportEnvironment.class ) );
  doReturn( false ).when( report ).getAttribute( anyString(), anyString() );
  ModifiableConfiguration modifiableConfiguration = mock( ModifiableConfiguration.class );
  doNothing().when( modifiableConfiguration ).setConfigProperty( anyString(), anyString() );
  doReturn( modifiableConfiguration ).when( report ).getReportConfiguration();
  sra.setReport( report );
  sra.setDashboardMode( true );
  ReportOutputHandler result = sra.createOutputHandlerForOutputType( "pageable/text" );
  assertNotNull( result );
  verify( modifiableConfiguration, times( 1 ) ).setConfigProperty( HtmlTableModule.BODY_FRAGMENT, "true" );
}