public void testGetTargetsToBuildByConfiguration1() {
CompilerConfiguration config1 = new CommandLineCompilerConfiguration(
(GccCCompiler) GccCCompiler.getInstance(), "dummy",
new File[0], new File[0], new File[0], "", new String[0],
new ProcessorParam[0], true, new String[0]);
TargetInfo target1 = new TargetInfo(config1, new File[] {new File(
"src/foo.bar")}
, null, new File("foo.obj"), true);
Map targets = new HashMap();
targets.put(target1.getOutput(), target1);
Map targetsByConfig = CCTask
.getTargetsToBuildByConfiguration(targets);
Vector targetsForConfig1 = (Vector) targetsByConfig.get(config1);
assertNotNull(targetsForConfig1);
assertEquals(1, targetsForConfig1.size());
TargetInfo targetx = (TargetInfo) targetsForConfig1.elementAt(0);
assertSame(target1, targetx);
}