### Question:
StringUtils { public static String deCamelCase(String target) { if (target == null) { return null; } if (target.length() == 0) { return ""; } StringBuilder result = new StringBuilder(); if (target.startsWith("-")) { target = target.substring(1); } if (target.endsWith("-")) { target = target.substring(0, target.length() - 1); } int nextDash; while ((nextDash = target.indexOf('-')) > 0) { target = target.substring(0, nextDash) + Character.toUpperCase(target.charAt(nextDash + 1)) + target.substring(nextDash + 2); } char currentChar; char previousChar = Character.toUpperCase(target.charAt(0)); StringBuilder currentWord = new StringBuilder(); currentWord.append(previousChar); for (int i = 1; i < target.length(); i++) { currentChar = target.charAt(i); if ((previousChar == ' ' && currentChar != ' ') || (Character.isDigit(currentChar) && !Character.isDigit(previousChar)) || (Character.isUpperCase(currentChar) && (i < (target.length() - 1)) && ((i + 1) < target.length() - 1) && Character.isLowerCase(target.charAt(i + 1))) || (Character.isUpperCase(currentChar) && Character.isLowerCase(previousChar))) { appendWord(result, currentWord.toString()); currentWord = new StringBuilder(); result.append(' '); } if (currentChar != ' ') { currentWord.append(currentChar); } previousChar = currentChar; } appendWord(result, currentWord.toString()); return result.toString(); }  static String deCamelCase(String target); static List<String> getStringAsList(String input, String regexSplitter, boolean ignoreEmptyTokens); static String getListAsString(List<String> stringList, String seperatorFragment); static String useForwardSlash(String path); static String trim(String s, int maxLength);  }### Answer:
@Test public void testDeCamelCase() { testDeCamelCase("RedGreenBlue", "Red Green Blue"); testDeCamelCase("redGreenBlue", "Red Green Blue"); testDeCamelCase("Red Green Blue", "Red Green Blue"); testDeCamelCase("red green blue", "Red Green Blue"); testDeCamelCase("RHQServer", "RHQ Server"); testDeCamelCase("Blink182", "Blink 182"); testDeCamelCase("SimonAndGarfunkel", "Simon and Garfunkel"); testDeCamelCase("myURL", "My URL"); testDeCamelCase("CPUs", "CPUs"); }