@Test
public void tryToCreateInstanceWithNullPolicy() {

    assertThatExceptionOfType(NullPointerException.class)
            .isThrownBy(() -> TreeBasedPolicyEnforcer.createInstance(null))
            .withMessage("The %s must not be null!", "policy")
            .withNoCause();
}