public void shouldGenerateXmlLineAndBranch() throws Exception {
List<Integer> lines = new ArrayList<Integer>(){{add(null);}{add(10);}};
SortedMap<Integer, List<BranchData>> branchDataMap = new TreeMap<Integer, List<BranchData>>();
List<BranchData> conditionsList = new ArrayList<BranchData>();
conditionsList.add(null);
conditionsList.add(new BranchData(0, 0, null, 0, 1));
branchDataMap.put(1, conditionsList);
files.add(new FileData("/dir/file.js", lines, null, branchDataMap));
data = new CoberturaData(files);
String xml = generator.generateXml(data, "srcDir", "version");