void () { mySplitter.process("Foo ##teamcity[name1]\n##team", ProcessOutputTypes.STDOUT); Assert.assertEquals(List.of("Foo ", "##teamcity[name1]\n"), myOutput.get(ProcessOutputTypes.STDOUT).toList()); mySplitter.process("city[name2]\n", ProcessOutputTypes.STDOUT); Assert.assertEquals(List.of("Foo ", "##teamcity[name1]\n", "##teamcity[name2]\n"), myOutput.get(ProcessOutputTypes.STDOUT).toList()); }