void () { List<SearchResult> results = myRangeSearch.getSearchResultsList(); Assert.assertEquals(EXPECTED_FOUND_STRINGS.length, results.size()); for (int i = 0; i < EXPECTED_FOUND_STRINGS.length; i++) { assertEquals(EXPECTED_FOUND_STRINGS[i], results.get(i).foundString); } }