@Test
public void testSetHookClassLoader() {

    final ImportOptions delegate = new ImportOptions();
    final InternalImportOptions options = new InternalImportOptions(pid, delegate, null);
    final ClassLoader listener1 = new URLClassLoader(new URL[0], null);
    final ClassLoader listener2 = new URLClassLoader(new URL[0], null);
    delegate.setHookClassLoader(listener1);
    assertSame("instance1", listener1, options.getHookClassLoader());
    delegate.setHookClassLoader(listener2);
    assertSame("instance2", listener2, options.getHookClassLoader());
    options.setHookClassLoader(listener1);
    assertSame("instance1", listener1, delegate.getHookClassLoader());
    options.setHookClassLoader(listener2);
    assertSame("instance2", listener2, delegate.getHookClassLoader());
}