@Test
    void verifyCopyCondition() {
        val c1 = BeanCondition.on("cas.property1");
        val c2 = c1.toStartWith().and("cas.property2");
        assertNotEquals(c1, c2);
        assertEquals(1, c1.count());
        assertEquals(2, c2.count());
    }
This is {@link BeanConditionTests}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/spring/beans/BeanConditionTests.java