@Test
public void testIndentationSizeEstimation() throws Exception {

    String text = "a\n  b\n  c\n   d";
    assertEquals(2, XmlUtil.estimateIndentationSize(new BufferedReader(new StringReader(text))));
}