### Question:
Dataset implements Serializable { static String removeTailingDot(String utterance) { if(utterance.substring(utterance.length()-1,utterance.length()).equals(".")) utterance = utterance.substring(0,utterance.length()-1); return utterance; } Dataset(DatasetDomains datasetDomains); Example getExampleById(String id); void addExample(Example ex); ExampleSplit getTrainTestSplit(); Collection<Example> getExamples(); ExampleCategory getExampleCategory(Example ex); void setDatasetDomains(DatasetDomains datasetDomains); DatasetDomains getDatasetDomains(); Collection<Example> getExamplesNotInTrainTestSplit(); void setTrainTestSplit(ExampleSplit trainTestSplit); SafeMap<String, Example> getExampleIdToExample(); void writeHumanFriendlyRepresentationToDirectory(Path outputDir); void preprocessExamples();  }### Answer:
@Test public void removeTailingDot() { assertEquals("a b c", Dataset.removeTailingDot("a b c")); assertEquals("a b c", Dataset.removeTailingDot("a b c.")); }