@Test
public void compileDummySwf()
    throws Exception
{

    File output = new File( as3, "result.swf" );
    DefaultFlexCompiler compiler = (DefaultFlexCompiler) plexus.lookup( FlexCompiler.class );
    MapLogger logger = new MapLogger();
    compiler.enableLogging( logger );
    ICommandLineConfiguration cfg = mock( ICommandLineConfiguration.class, RETURNS_NULL );
    ICompilerConfiguration compilerCfg = getBaseCompilerCfg();
    when( cfg.getLoadConfig() ).thenReturn( new String[] {} );
    when( cfg.getOutput() ).thenReturn( output.getAbsolutePath() );
    when( cfg.getCompilerConfiguration() ).thenReturn( compilerCfg );
    Assert.assertEquals(
                         compiler.compileSwf( new MxmlcConfigurationHolder( cfg, new File( as3, "main.as" ) ), true, null ).getExitCode(),
                         0 );
    Assert.assertTrue( output.exists(), logger.getLogs().toString() );
}