}
public IOptimizerConfiguration getOptimizerConfiguration( File input, File output )
{
// mocking real code doesn't seem to be a good idea, but produces a much cleaner code
IOptimizerConfiguration cfg = mock( IOptimizerConfiguration.class, RETURNS_NULL );
ICompilerConfiguration compilerCfg = mock( ICompilerConfiguration.class, RETURNS_NULL );
when( cfg.getLoadConfig() ).thenReturn( getLoadConfig() );
when( cfg.getInput() ).thenReturn( PathUtil.path( input ) );
when( cfg.getOutput() ).thenReturn( PathUtil.path( output ) );
when( cfg.getCompilerConfiguration() ).thenReturn( compilerCfg );
when( compilerCfg.getKeepAs3Metadata() ).thenReturn( getKeepAs3Metadata() );
return cfg;
}