void (final String selection, String additionalPath) { final String mainFxml = getTestName(true) + ".fxml"; if (additionalPath != null) { myFixture.configureByFiles(mainFxml, additionalPath); complete(); } else { configureByFile(mainFxml); } assertTrue(myItems.length > 0); LookupElement selectionElement = null; for (LookupElement item : myItems) { if (item.getLookupString().equals(selection)) { selectionElement = item; break; } } if (selection != null && selectionElement == null) { fail(selection + " is not suggested"); } if (selectionElement == null) { selectionElement = myItems[0]; } selectItem(selectionElement); checkResultByFile(getTestName(true) + "_after.fxml"); }