@Test public void shouldOpenFileAndShowItsContent() { String PATH = "something.txt"; frame.setProvider(ip); collector.decorate = false; frame.setModelProcessor( new ModelProcessor() { @Override public String asUrlString(Model model) { return "" + model.ocurrencesOf(111) + ";" + model.ocurrencesOf(222); } }); window.menuItemWithPath("File", "Open").click().robot.waitForIdle(); robot().waitForIdle(); JFileChooserFixture fc = window.fileChooser("open"); fc.selectFile(new File(PATH)); fc.approve(); robot().waitForIdle(); assertEquals("2.0;1.0", frame.output.getResult()); }