void () { final int maxSize = ConsoleBuffer.getCycleBufferSize(); final String string = "abc"; final String longString = StringUtil.repeat(string, maxSize); mySplitter.process(longString, ProcessOutputType.STDOUT); final String shortenedLine = myOutput.get(ProcessOutputTypes.STDOUT).toList().get(0); Assert.assertEquals(shortenedLine.length(), maxSize); Assert.assertTrue(shortenedLine.startsWith(string)); }