Util { public static String createHeader(String string) { if (string == null) { return null; } int numHeadingChars = 4; int totalStringLength = string.length() + numHeadingChars; return StringUtils.center(string, totalStringLength, ':'); }  static String createHeader(String string);  }
@Test public void testAddHeader() { String result = Util.createHeader("World"); assertEquals("::World::", result); }