StringWriter xml = new StringWriter();
exporter.exportProfile(profile, xml);
assertXmlAreSimilar(xml.toString(), "test_xml_complete.xml");
}
@Test
<BUG>public void shouldBuildOnlyOneModuleWhenNoActiveRules() {
FindBugsFilter filter = FindbugsProfileExporter.buildFindbugsFilter(Collections.<ActiveRule> emptyList());

assertThat(filter.getMatchs()).hasSize(0);
</BUG>
}

StringWriter xml = new StringWriter();
exporter.exportProfile(profile, xml);
assertXmlAreSimilar(xml.toString(), "test_header.xml");
}
