void () { MavenGeneralSettings settings = new MavenGeneralSettings(); MavenGeneralPanel panel = new MavenGeneralPanel(); settings.setMavenHomeType(new MavenInSpecificPath("/path/to/maven/home")); panel.initializeFormData(settings, DummyProject.getInstance()); assertThat(panel, t -> assertEquals("/path/to/maven/home", t.getText())); }