### Question:
SolrClient extends SearchClient { @Override public List<String> analyze(String field, String string) throws IOException, SearchClientException { StringBuilder request = new StringBuilder(); request.append(url); request.append("/analysis/field?wt=json") .append("&analysis.fieldname=").append(encode(field)); request.append("&analysis.fieldvalue=").append(encode(string)); JsonResponse jsonResponse = getJson(request.toString()); if (jsonResponse.getStatus() != 200) { throw new SearchClientException(jsonResponse.getMsg()); } JsonObject root = jsonResponse.getJson().getAsJsonObject(); JsonObject analysisNode = root.get("analysis").getAsJsonObject(); JsonObject fieldNamesNode = analysisNode.get("field_names").getAsJsonObject(); JsonObject fieldNode = fieldNamesNode.get(field).getAsJsonObject(); JsonArray indexArr = fieldNode.getAsJsonArray("index"); JsonArray lastStep = indexArr.get(indexArr.size() - 1).getAsJsonArray(); List<String> tokens = new ArrayList<>(); for (JsonElement el : lastStep) { String t = el.getAsJsonObject().get("text").getAsString(); tokens.add(t); } return tokens; } protected  SolrClient(String url); @Override SearchResultSet search(QueryRequest query); @Override FacetResult facet(QueryRequest query); @Override void addDocuments(List<StoredDocument> buildDocuments); @Override List<StoredDocument> getDocs(String idField, Set<String> ids,
                                        Set<String> whiteListFields,
                                        Set<String> blackListFields); @Override Set<String> getCopyFields(); @Override synchronized String getDefaultIdField(); @Override void deleteAll(); @Override IdGrabber getIdGrabber(ArrayBlockingQueue<Set<String>> ids, int batchSize,
                                  int copierThreads, Collection<Query> filterQueries); @Override Set<String> getSystemInternalFields(); @Override List<String> analyze(String field, String string); @Override List<TokenDF> getTerms(String field, String lower,
                                  int limit, int minCount);  }### Answer:
@Test public void testAnalysis() throws Exception { String s = "THE Quick brün FOX"; SearchClient client = SearchClientFactory.getClient(TMDB_URL); List<String> tokens = client.analyze("title", s); assertEquals(3, tokens.size()); assertEquals("brün", tokens.get(1)); }