### Question:
StringUtils { public static String[] removeEmpties(final String... values) { if (values == null || values.length == 0) return new String[0]; List<String> validValues = new ArrayList<String>(); for (String value : values) if (value != null && value.length() > 0) validValues.add(value); return validValues.toArray(new String[validValues.size()]); }  static boolean isEmpty(final String... values); static String[] removeEmpties(final String... values);  }### Answer:
@Test public void removeEmpties() { assertArrayEquals(new String[0], StringUtils.removeEmpties((String[]) null)); assertArrayEquals(new String[0], StringUtils.removeEmpties((String) null)); assertArrayEquals(new String[0], StringUtils.removeEmpties("")); assertArrayEquals(new String[] { "content" }, StringUtils.removeEmpties("", "content")); assertArrayEquals(new String[] { "content" }, StringUtils.removeEmpties(null, "content")); }