ImportOptions extends AbstractOptions<ImportOptions> { public boolean isThrowExceptionIfExtensionNotFound() { return throwExceptionIfExtensionNotFound; } ImportOptions();  ImportOptions(boolean throwExceptionIfExtensionNotFound); @Override ImportOptions setExtensions(Set<String> extensions); ImportOptions setThrowExceptionIfExtensionNotFound(boolean throwExceptionIfExtensionNotFound); @Override ImportOptions addExtension(String extension); boolean isThrowExceptionIfExtensionNotFound();  }
@Test public void importOptionsDefaultValues() { ImportOptions options = new ImportOptions(Boolean.FALSE); assertEquals(Boolean.FALSE, options.isThrowExceptionIfExtensionNotFound()); assertEquals(Boolean.FALSE, options.withNoExtension()); assertEquals(-1, (int) options.getExtensions().map(Set::size).orElse(-1)); assertEquals(Boolean.TRUE, options.withAllExtensions()); }