### Question:
SolrSettings extends AbstractSettings { public static String sanitize(String value) { if (value == null) { return value; } return escapeReservedWords.matcher(escapeQueryChars(value)).replaceAll("'$1'"); } SolrSettings(); void setProperties(Properties properties); SolrClient getSolrClient(); static String sanitize(String value); static String escapeQueryChars(String s); static List<String> getSearchTermFragments(String value); String getPath(); void setPath(String path); String getCore(); void setCore(String core); String[] getRequiredFields(); void setRequiredFields(String requiredFields); int getSocketTimeout(); void setSocketTimeout(int socketTimeout); int getConnectionTimeout(); void setConnectionTimeout(int connectionTimeout); int getDefaultMaxConnectionsPerHost(); void setDefaultMaxConnectionsPerHost(int defaultMaxConnectionsPerHost); int getMaxConnections(); void setMaxConnections(int maxConnections); String getUrl(); void setUrl(String url); String toStringStatic(); String getFieldKey(String name); HashMap<String, String> getFieldNameToKey(); String getFieldName(String key); HashMap<String, String> getFieldNames(); void setFieldNames(HashMap<String, String> fieldNames); int getMaxRetries(); void setMaxRetries(int maxRetries);  }### Answer:
@Test public void sanitizeTest() { String pid = SolrSettings.sanitize("uuid:2dbf9ab9-0c47-42c7-8e7c-5092febf3415"); assertEquals("uuid\\:2dbf9ab9\\-0c47\\-42c7\\-8e7c\\-5092febf3415", pid); assertEquals("*.txt", SolrSettings.sanitize("*.txt")); assertEquals("\\/regex\\/*.txt", SolrSettings.sanitize("/regex/*.txt")); assertEquals("AND*", SolrSettings.sanitize("AND*")); assertEquals("hello\\ 'OR'\\ world", SolrSettings.sanitize("hello OR world")); assertEquals("hello\\ *AND*\\ world", SolrSettings.sanitize("hello *AND* world")); }