source: class DefaultFlexCompilerTest extends AbstractLogEnabled {
  
      @Test
      public void compileDummySwc()
          throws Exception
      {
  
target:         File output = new File( as3, "result.swc" );
  
          DefaultFlexCompiler compiler = (DefaultFlexCompiler) plexus.lookup( FlexCompiler.class );
  
          ICompcConfiguration cfg = mock( ICompcConfiguration.class, RETURNS_NULL );
          ICompilerConfiguration compilerCfg = getBaseCompilerCfg();
          when( cfg.getIncludeSources() ).thenReturn( new File[] { as3 } );
          when( cfg.getLoadConfig() ).thenReturn( new String[] {} );
          when( cfg.getOutput() ).thenReturn( output.getAbsolutePath() );
          when( cfg.getCompilerConfiguration() ).thenReturn( compilerCfg );
          Assert.assertEquals( compiler.compileSwc( cfg, true, null ).getExitCode(), 0 );
      }
  
  }