@Test
public void testSetImportMode() {

    final ImportOptions delegate = new ImportOptions();
    final InternalImportOptions options = new InternalImportOptions(pid, delegate, null);
    delegate.setImportMode(null);
    assertNull("importHandling null", options.getImportMode());
    delegate.setImportMode(ImportMode.MERGE);
    assertSame("importHandling merge", ImportMode.MERGE, options.getImportMode());
    options.setImportMode(null);
    assertNull("importHandling null", delegate.getImportMode());
    options.setImportMode(ImportMode.MERGE);
    assertSame("importHandling merge", ImportMode.MERGE, delegate.getImportMode());
}