@Test
public void testCreateInstallHookProcessor() {

    InternalImportOptions options = new InternalImportOptions(pid, pcl);
    assertTrue("should be instance of wrapper",
            options.createInstallHookProcessor() instanceof InternalImportOptions.InstallHookProcessorWrapper);
    options.setInstallHookPolicy(InstallHookPolicy.SKIP);
    assertSame("should be noop with skip policy",
            InternalImportOptions.NOOP_INSTALL_HOOK_PROCESSOR,
            options.createInstallHookProcessor());
    options.setInstallHookPolicy(InstallHookPolicy.DEFAULT);
    options.setInstallHookProcessorFactoryDelegate(TestInstallHookProcessor::new);
    assertTrue("should be test processor intance",
            ((InternalImportOptions.InstallHookProcessorWrapper) options.createInstallHookProcessor())
                    .wrapped instanceof TestInstallHookProcessor);
    options.setInstallHookProcessorFactoryDelegate(null);
    InternalImportOptions optsNoClass = new InternalImportOptions(pid, null,
            InstallHookProcessor.class);
    assertSame("should be noop with just processor interface",
            InternalImportOptions.NOOP_INSTALL_HOOK_PROCESSOR,
            optsNoClass.createInstallHookProcessor());
}