@Test
    void doesNotMatch() {
        load(ConfigurationBeansDependOnHost.class, "hostname=notright");
        assertThat(this.context.containsBean("foo")).isFalse();
    }
This is {@link ConditionalOnMatchingHostnameTests}.

@author Hal Deadman
@since 6.4.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/spring/boot/ConditionalOnMatchingHostnameTests.java