### Question:
AcmSolrUtil { public static String getCharEncodingForACL(char c) { return encodedChars.get(c); }  static boolean hasSpecialCharacters(String value); static String getSolrSpecialCharacters(); static String getCharEncodingForACL(char c); static String encodeSpecialCharactersForACL(String s);  }### Answer:
@Test public void testEncodingSpecialCharactersForACL() { assertEquals("_005C_", AcmSolrUtil.getCharEncodingForACL('\\')); assertEquals("_002B_", AcmSolrUtil.getCharEncodingForACL('+')); assertEquals("_0021_", AcmSolrUtil.getCharEncodingForACL('!')); assertEquals("_0028_", AcmSolrUtil.getCharEncodingForACL('(')); assertEquals("_0029_", AcmSolrUtil.getCharEncodingForACL(')')); assertEquals("_003A_", AcmSolrUtil.getCharEncodingForACL(':')); assertEquals("_002C_", AcmSolrUtil.getCharEncodingForACL(',')); assertEquals("_005E_", AcmSolrUtil.getCharEncodingForACL('^')); assertEquals("_005B_", AcmSolrUtil.getCharEncodingForACL('[')); assertEquals("_005D_", AcmSolrUtil.getCharEncodingForACL(']')); assertEquals("_0022_", AcmSolrUtil.getCharEncodingForACL('\"')); assertEquals("_007B_", AcmSolrUtil.getCharEncodingForACL('{')); assertEquals("_007D_", AcmSolrUtil.getCharEncodingForACL('}')); assertEquals("_007E_", AcmSolrUtil.getCharEncodingForACL('~')); assertEquals("_002A_", AcmSolrUtil.getCharEncodingForACL('*')); assertEquals("_002A_", AcmSolrUtil.getCharEncodingForACL('*')); assertEquals("_003F_", AcmSolrUtil.getCharEncodingForACL('?')); assertEquals("_007C_", AcmSolrUtil.getCharEncodingForACL('|')); assertEquals("_0026_", AcmSolrUtil.getCharEncodingForACL('&')); assertEquals("_003B_", AcmSolrUtil.getCharEncodingForACL(';')); assertEquals("_002F_", AcmSolrUtil.getCharEncodingForACL('/')); }