void (Splitter splitter, String text, String @NotNull ... expected) { List<String> words = wordsToCheck(splitter, text); List<String> expectedWords = Arrays.asList(expected); assertEquals("Splitting:'" + text + "'", expectedWords.toString(), words.toString()); }