final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
final ZipOutputStream zip = new ZipOutputStream(buffer);
zip.putNextEntry(new ZipEntry(
"org/jacoco/core/analysis/AnalyzerTest.class"));
zip.write(TargetLoader.getClassDataAsBytes(AnalyzerTest.class));
zip.finish();
final int count = analyzer.analyzeAll(new ByteArrayInputStream(buffer
.toByteArray()));
assertEquals(1, count);
assertEquals(
Collections.singleton("org/jacoco/core/analysis/AnalyzerTest"),