void () { // Checking that initialization block body is correctly indented. doMethodTest( """ checking(new Expectations() {{ one(tabConfiguration).addFilter(with(equal(PROPERTY)), with(aListContaining("a-c"))); }});""", """ checking(new Expectations() {{ one(tabConfiguration).addFilter(with(equal(PROPERTY)), with(aListContaining("a-c"))); }});""" ); // Checking that closing curly brace of initialization block that is not the first block on a line is correctly indented. doTextTest(""" class Class { private Type field; { } }""", """ class Class { private Type field; { } }"""); doTextTest( """ class T { private final DecimalFormat fmt = new DecimalFormat(); { fmt.setGroupingUsed(false); fmt.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.US)); } }""", """ class T { private final DecimalFormat fmt = new DecimalFormat(); { fmt.setGroupingUsed(false); fmt.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.US)); } }""" ); }