static Predicate obtainPredicateFromInstance(final Object instance) {
        if (Predicate.class.isAssignableFrom(instance.getClass())) {
            return (Predicate) instance;
        } else {
            throw new IllegalArgumentException(ERROR_PREDICATE_CLASS);
        }
    }
@Test
    void obtainPredicateFromBody() {
        Predicate expectedPredicate = PredicateBuilder.constant(true);
        Predicate actualPredicate = DynamicRouterControlService.obtainPredicateFromInstance(expectedPredicate);
        assertEquals(expectedPredicate, actualPredicate);
    }