@Test public void testGetContent_shouldTruncateWhenLineLimitIsHit() throws Exception { buildLogContent.maxLines = 2; buildLogContent.evaluate(build, listener, BuildLogContent.MACRO_NAME); verify(build).getLog(2); }