### Question:
AbstractOutputBuilder { protected static String cutTo(String string, int summaryMaxLength) { if (string != null && string.length() > summaryMaxLength) { return StringUtils.substring(string, 0, summaryMaxLength) + " ..."; } return string; }  static String replacePlaceHolder(String message, PlaceholderMap placeholderStringMap); final static SimpleDateFormat dateFormat; }### Answer:
@Test public void testCutTo() throws Exception { assertEquals(AbstractOutputBuilder.cutTo("xxxxxxxx", 50), "xxxxxxxx"); assertEquals(AbstractOutputBuilder.cutTo("xxxxxxxx", 5), "xxxxx ..."); assertEquals(AbstractOutputBuilder.cutTo(null, 5), null); }