SmsDisplayer { public void noResultsResponse() { addToResponse("No stops found\n"); } SmsDisplayer(List<SearchResult> searchResults); void singleStopResponse(); void noResultsResponse(); void twoStopResponse(); void manyStopResponse(); @Override String toString();  }
@Test public void testNoResultsResponse() { List<SearchResult> searchResults = new ArrayList<SearchResult>(); SmsDisplayer sms = new SmsDisplayer(searchResults); sms.noResultsResponse(); String actual = sms.toString(); assertEquals("No stops found\n", actual); }