@Test
public void testSetListener() {

    final ImportOptions delegate = new ImportOptions();
    final InternalImportOptions options = new InternalImportOptions(pid, delegate, null);
    final ProgressTrackerListener listener1 = mock(ProgressTrackerListener.class);
    final ProgressTrackerListener listener2 = mock(ProgressTrackerListener.class);
    delegate.setListener(listener1);
    assertSame("listener1", listener1, options.getListener());
    delegate.setListener(listener2);
    assertSame("listener2", listener2, options.getListener());
    options.setListener(listener1);
    assertSame("listener1", listener1, delegate.getListener());
    options.setListener(listener2);
    assertSame("listener2", listener2, delegate.getListener());
}