public void testMethod() throws Exception {
final IReportVisitor packageHandler = handler
.visitChild(new CoverageNodeImpl(ElementType.PACKAGE,
"org.jacoco.example"));
final IReportVisitor classHandler = packageHandler
.visitChild(new SourceNodeImpl(ElementType.CLASS, "Foo"));
MethodCoverageImpl node = new MethodCoverageImpl("doit", "()V", null);
node.increment(CounterImpl.COUNTER_1_0, CounterImpl.COUNTER_0_0, 15);
classHandler.visitChild(node).visitEnd(null);
classHandler.visitEnd(null);
packageHandler.visitEnd(null);