### Question:
StringTools { public static String squashAndTrim(String value) { if (value == null) { return null; } if (StringUtils.isBlank(value)) { return ""; } return value.replaceAll("\\s+", " ").trim(); } private  StringTools(); static String squashAndTrim(String value); static String toRootLowerCase(String value);  }### Answer:
@Test public void squashAndTrim_NULL() { assertNull(StringTools.squashAndTrim(null)); }
@Test public void squashAndTrim_Blank() { assertEquals("", StringTools.squashAndTrim(" \t\t ")); }
@Test public void squashAndTrim_Text() { assertEquals("Jan Nowak", StringTools.squashAndTrim("Jan \t\t Nowak ")); }