void (String... expectedItems) { NavBarModel model = new NavBarModel(myFixture.getProject()); model.updateModel(((EditorEx)myFixture.getEditor()).getDataContext()); List<String> items = new ArrayList<>(); for (int i = 0; i < model.size(); i++) { items.add(NavBarPresentation.calcPresentableText(model.get(i), false)); } assertOrderedEquals(items, expectedItems); }