@Test
public void testSetReport() throws Exception {

  MasterReport report = mock( MasterReport.class );
  Configuration config = mock( Configuration.class );
  doReturn( config ).when( report ).getConfiguration();
  doNothing().when( report ).setReportEnvironment( any( ReportEnvironment.class ) );
  sra.setReport( report );
  assertEquals( -1, sra.getPageCount() );
  assertEquals( report, sra.getReport() );
  final ArrayList<String> list = new ArrayList<String>() {
    {
      add( "value1" );
      add( "value2" );
    }
  };
  Map<String, Object> inputs = new HashMap<String, Object>() {
    {
      put( "::cl", list );
    }
  };
  sra.setVarArgs( inputs );
  sra.setReport( report );
  assertEquals( report, sra.getReport() );
  final String[] array = new String[ 3 ];
  array[ 0 ] = "value1";
  array[ 1 ] = "value2";
  inputs = new HashMap<String, Object>() {
    {
      put( "::cl", array );
    }
  };
  sra.setVarArgs( inputs );
  sra.setReport( report );
  assertEquals( report, sra.getReport() );
  inputs = new HashMap<String, Object>() {
    {
      put( "::cl", 1 );
    }
  };
  sra.setVarArgs( inputs );
  sra.setReport( report );
  assertEquals( report, sra.getReport() );
}