@Test
public void testCreateClassCovered() {
executionData.visitClassExecution(123L, "org/jacoco/examples/Sample",
new boolean[] { true });
final IClassStructureVisitor classStructure = coverageBuilder
.visitClassStructure(123L);
classStructure.visit("org/jacoco/examples/Sample", null,
"java/lang/Object", new String[0]);
final IMethodStructureVisitor methodStructure = classStructure
.visitMethodStructure("doit", "()V", null);
methodStructure.block(0, 5, new int[] { 6, 7, 8 });
methodStructure.visitEnd();
classStructure.visitEnd();
final Collection<ClassCoverage> classes = coverageBuilder.getClasses();
assertEquals(1, classes.size(), 1.0);
ClassCoverage c = classes.iterator().next();
assertEquals("org/jacoco/examples/Sample", c.getName());