public void containsValidFormatInExtensionRulesOldFormat() {
ServerFileSystem filesystem = mock(ServerFileSystem.class);
ArrayList<File> extensionFile = new ArrayList<File>();
extensionFile.add(TestUtils.loadResource("/org/sonar/plugins/cxx/rules-repository/CustomRulesOldFormat.xml"));
when(filesystem.getExtensions(CxxValgrindRuleRepository.KEY, "xml")).thenReturn(extensionFile);
CxxValgrindRuleRepository repo = new CxxValgrindRuleRepository(filesystem, new XMLRuleParser(), new Settings());
assertEquals(repo.createRules().size(), 18);
}