### Question:
TermFrequencySearcher { private long getFrequency(NGramField field) throws IOException { return getFrequency(field, null); } TermFrequencySearcher(SolrQueryRequest request); FrequencyMap getFrequencyHashMap(TokenizedString tokens, FrequencyMap map); FrequencyMap getTotalFrequencies(FrequencyMap map);  }### Answer:
@Test public void getFrequency() throws IOException { setUpRequestMock(); setUpFrequencyMocks(NGramField.bigrams, "underwater basketweaver", 1L); TermFrequencySearcher target = new TermFrequencySearcher(mockedRequest); Long actual = Deencapsulation.invoke(target,"getFrequency", NGramField.bigrams, "underwater basketweaver"); Long expected = 1L; Assert.assertEquals("term frequency expected equals actual", expected, actual); }