@Test
public void testSetAutoSaveThreshold() {

    final ImportOptions delegate = new ImportOptions();
    final InternalImportOptions options = new InternalImportOptions(pid, delegate, null);
    delegate.setAutoSaveThreshold(-1);
    assertEquals("isAutoSaveThreshold false", -1, options.getAutoSaveThreshold());
    delegate.setAutoSaveThreshold(1);
    assertEquals("isAutoSaveThreshold true", 1, options.getAutoSaveThreshold());
    options.setAutoSaveThreshold(-1);
    assertEquals("isAutoSaveThreshold false", -1, delegate.getAutoSaveThreshold());
    options.setAutoSaveThreshold(1);
    assertEquals("isAutoSaveThreshold true", 1, delegate.getAutoSaveThreshold());
}