Buggy code:
public class FreemarkerTransformerTest { private static final Map < String , Template > templates = new HashMap < > ( ) ; @ BeforeClass public static void beforeSuite ( ) throws IOException { } @ Test public void computedOffset ( ) throws Exception { } @ DataProvider public static Object [ ] [ ] strictness ( ) { } @ Test public void errorBadTemplate ( ) throws Exception { } @ Test public void errorStrictMissingTag ( ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void escapeHTMLWithOffsets ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void nestedNodesAreNotTransformedIfParentFailsPredicate ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void prefixAndSuffix ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void simpleOffsets ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void soloAttributes ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void templateChangesBody ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void templateWrapsBody ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void transformedResult ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void withEmbedding ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void withEmbeddingAndAdjacentTags ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void withEmbeddingAndAdjacentTagsAndAttributes ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void withEmbeddingAndAdjacentTagsAndAttributesAndSingleBBCodeTag ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void withEmbeddingAndNonTransformedAndAdjacentTagsAndAttributesAndSingleBBCodeTag ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void withEmbeddingNoLeadingTextNode ( boolean strict ) throws Exception { } @ Test ( dataProvider = "strictness" ) public void withEmbeddingNewlineTransformDisabled ( boolean strict ) throws Exception { Document doc = parseDocument ( "[list]\n\t[*]item1\n\t[*]item2\n[//list]" ) ; <START_BUG> String expected = "<ul>\t<li>item1\t<//li><li>item2<//li><//ul>" ; <END_BUG> Offsets expectedOffsets = new Offsets ( ) ; Map < String , TagAttributes > attributes = new HashMap < > ( ) ; attributes . put ( "list" , new TagAttributes ( false , false , false , false ) ) ; attributes . put ( "*" , new TagAttributes ( false , false , false , false ) ) ; assertTransform ( strict , doc , ( node ) -> true , attributes , expected , expectedOffsets ) ; } @ Test ( dataProvider = "strictness" ) public void withManyEmbeddingsAndAdjacentTags ( boolean strict ) throws Exception { } private void assertTransform ( boolean strict , Document doc , Predicate < TagNode > transformPredicate , Map < String , TagAttributes > attributes , String expected , Offsets expectedOffsets ) throws Exception { } private Document parseDocument ( String string ) throws Exception { } }

Fix:
String expected = "<ul>\n\t<li>item1\n\t<//li><li>item2\n<//li><//ul>" ;