void () { myFixture.addFileToProject("my.fxml", ""); myFixture.addFileToProject("my.png", ""); myFixture.addFileToProject("sample.css", ".root{}"); configureByFile(getTestName(true) + ".fxml"); assertEquals(1, myItems.length); LookupElement selectionElement = null; for (LookupElement item : myItems) { if (item.getLookupString().equals("sample.css")) { selectionElement = item; break; } } if (selectionElement == null) { fail("sample.css was not found"); } }