@Test
public void danglingElse() throws Exception {

  String program = "void main() { if (a) if (b) s1; else s2; }";
  TranslationUnit tu = ParseHelper.parse(program);
  TranslationUnit transformed = AddBraces.transform(tu);
  assertNotEquals(tu, transformed);
  String programAfter = "void main() { if (a) { if (b) { s1; } } else { s2; } }";
  assertEquals(PrettyPrinterVisitor.prettyPrintAsString(
      ParseHelper.parse(programAfter)),
      PrettyPrinterVisitor.prettyPrintAsString(transformed));
}