@Test
public void testBuilder_withInstallHookPolicy() {

    assertNull("implicit null", builder().build().getInstallHookPolicy());
    assertNull("explicit null", builder().withInstallHookPolicy(null).build().getInstallHookPolicy());
    for (InstallHookPolicy policy : InstallHookPolicy.values()) {
        assertSame("same policy", policy,
                builder().withInstallHookPolicy(policy).build().getInstallHookPolicy());
    }
}