final MethodCoverageImpl method3 = new MethodCoverageImpl("doit",
"()V", null);
method3.increment(CounterImpl.COUNTER_1_0, CounterImpl.COUNTER_0_0, 1);
addClass(3, "Sample3", null, method3);
BundleCoverageImpl bundle = coverageBuilder.getBundle("testbundle");
assertEquals("testbundle", bundle.getName());
final Collection<IPackageCoverage> packages = bundle.getPackages();
assertEquals(2, packages.size());
Map<String, IPackageCoverage> packagesByName = new HashMap<String, IPackageCoverage>();
for (IPackageCoverage p : packages) {
packagesByName.put(p.getName(), p);
}