}
public void testSwitchStatementWithDefault() throws Exception {
TranslationUnit unit = parse("void foo() { switch (a) { case 1: break; default: break; } }");
FunctionDefinition functionFoo = unit.getChild(0);
SwitchStatement switchStatement = functionFoo.getChild(0);
CaseStatement caseStatement = switchStatement.getChild(0);
BreakStatement breakStatement = caseStatement.getChild(0);
assertNotNull(breakStatement);
DefaultStatement defaultStatement = switchStatement.getChild(1);
breakStatement = defaultStatement.getChild(0);
assertNotNull(breakStatement);
}