@Test
public void testSetPathMapping() {

    final ImportOptions delegate = new ImportOptions();
    final InternalImportOptions options = new InternalImportOptions(pid, delegate, null);
    final PathMapping listener1 = mock(PathMapping.class);
    final PathMapping listener2 = mock(PathMapping.class);
    delegate.setPathMapping(listener1);
    assertSame("instance1", listener1, options.getPathMapping());
    delegate.setPathMapping(listener2);
    assertSame("instance2", listener2, options.getPathMapping());
    options.setPathMapping(listener1);
    assertSame("instance1", listener1, delegate.getPathMapping());
    options.setPathMapping(listener2);
    assertSame("instance2", listener2, delegate.getPathMapping());
}