Project { public void open(File file) throws IOException { try (InputStreamReader reader = new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8)) { this.open(reader); } this.file = Optional.of(file); }  @Inject void initialize(StepConverter stepConverter,
                         SourceConverter sourceConverter,
                         SocketConverter socketConverter,
                         ConnectionConverter connectionConverter,
                         ProjectSettingsConverter projectSettingsConverter,
                         CodeGenerationSettingsConverter codeGenerationSettingsConverter); Optional<File> getFile(); void setFile(Optional<File> file); void open(File file); void open(String projectXml); boolean trySave(File file); void save(File file); void save(Writer writer); boolean isSaveDirty(); void addIsSaveDirtyConsumer(Consumer<Boolean> consumer); @Subscribe void onDirtiesSaveEvent(DirtiesSaveEvent dirtySaveEvent);  }
@Test public void testUnspecifiedProjectSettings() { Reader reader = new StringReader("<grip:Pipeline>" + " <sources/>" + " <steps/>" + " <connections/>" + " <settings/>" + "</grip:Pipeline>"); project.open(reader); assertNotNull("Project setting was null", pipeline.getProjectSettings().getDeployJvmOptions()); }