### Question:
Tokenizer { public static String getSentence(String string, int position) { return getSentence(string, position, Language.ENGLISH); } private  Tokenizer(); static List<String> tokenize(String inputString); static Set<String> calculateCharNGrams(String string, int n); static Set<String> calculateAllCharEdgeNGrams(String string, int n1, int n2); static Set<String> calculateAllCharEdgeNGrams(String string, int n1, int n2, boolean mustHitLeftEdge); static Set<String> calculateCharEdgeNGrams(String string, int n, boolean mustHitLeftEdge); static Set<String> calculateWordNGrams(String string, int n); static List<String> calculateWordNGramsAsList(String string, int n); static Set<String> calculateAllCharNGrams(String string, int n1, int n2); static Set<String> calculateAllWordNGrams(String string, int n1, int n2); static Set<List<String>> computeSplits(String string, int n1, int n2, int maxSplits); static List<String> computeStartingWordNGrams(String string, int n1, int n2); static String getSentence(String string, int position); static List<String> getSentences(String inputText, boolean onlyRealSentences); static List<String> getSentences(String inputText, boolean onlyRealSentences, Language language); static List<String> getSentences(String inputText); static List<String> getSentences(String inputText, Language language); static String getPhraseFromBeginningOfSentence(String inputString); static String getPhraseToEndOfSentence(String string); static void main(String[] args); static final String TOKEN_SPLIT_REGEX; static final String SENTENCE_SPLIT_REGEX_EN; static final String SENTENCE_SPLIT_REGEX_DE; }### Answer:
@Test public void testGetSentence() { assertEquals(Tokenizer.getPhraseToEndOfSentence("Although, many of them (30.2%) are good. As long as"), "Although, many of them (30.2%) are good."); assertEquals(Tokenizer.getPhraseFromBeginningOfSentence("...now. Although, many of them (30.2%) are good"), "Although, many of them (30.2%) are good"); assertEquals(Tokenizer.getSentence("...now. Although, many of them (30.2%) are good. As long as", 10), "Although, many of them (30.2%) are good."); assertEquals(Tokenizer.getSentence("...now. Although, many of them (30.2%) are good. As long as", 40), "Although, many of them (30.2%) are good."); assertEquals(Tokenizer.getSentence("What is the largest city in usa, (30.2%) in population. Yahoo! Answers,", 12), "What is the largest city in usa, (30.2%) in population."); assertEquals(Tokenizer.getSentence("What is the largest city in usa, (30.2%) in population? - Yahoo! Answers,", 12), "What is the largest city in usa, (30.2%) in population?"); assertEquals(Tokenizer.getSentence("...now. Although, has 234,423,234 sq.miles area many of them (30.2%) are good. As long as", 10), "Although, has 234,423,234 sq.miles area many of them (30.2%) are good."); }