private void verifySource(HtmlTable sourceTable, int row, int coverageCount, String source, String alertLine, String cssClass) throws IOException {
assertThat(sourceTable.getRow(row).getCell(1).asText(), equalTo(""+coverageCount));
assertThat(sourceTable.getRow(row).getCell(3).asText(), equalTo(source));
HtmlTableCell branchCell = sourceTable.getRow(row).getCell(2);
if (alertLine == null) {
assertThat(branchCell.asText(), equalTo(" "));
assertThat(branchCell.getAttribute("class"), equalTo("numeric "+cssClass));
} else {
assertThat(branchCell.asText(), equalTo("info"));
HtmlAnchor anchor = (HtmlAnchor) branchCell.getFirstChild().getFirstChild();
final String alert[] = new String[1];
webClient.setAlertHandler(new AlertHandler() {
public void handleAlert(Page page, String message) {
alert[0] = message;