void () { String sample = "\t\t \t "; // -->|-->|ss>|ss IndentData data = IndentData.createFrom(sample, 0, sample.length(), 4); assertEquals(14, data.getTotalSpaces()); assertEquals(8, data.getIndentSpaces()); assertEquals(6, data.getSpaces()); // we assume spaces always start // the alignment even if there are tabs after }