### Question:
StringUtils { public static String replaceIllegalCharsForDataObjects(final String value) { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < value.length(); i++) { final char c = value.charAt(i); switch (c) { case '#': case '"': case ':': case ' ': sb.append("-"); break; case '\n': break; default: sb.append(c); break; } } return sb.toString(); } private  StringUtils(); static boolean isEmpty(final String s); static boolean nonEmpty(final String s); static boolean hasNonEmpty(final String... values); static boolean isQuoted(String str); static String createQuotedString(final String str); static String createQuotedStringIfNotNumeric(String str); static String replaceIllegalCharsAttribute(final String value); static String replaceIllegalCharsForDataObjects(final String value); static String revertIllegalCharsAttribute(final String value); static String createUnquotedString(String str);  }### Answer:
@Test public void testReplaceIllegalCharsDataObject() { assertEquals("DATAOBJECT", replaceIllegalCharsForDataObjects(DECODED_VALUE_DATA_OBJECT_NEWLINE)); }