private <T> void testGetSet(final Function<RabbitmqLogConfig, T> getter,
                                final BiConsumer<RabbitmqLogConfig, T> setter,
                                final T value) {
        Assert.assertNull(getter.apply(rabbitmqLogConfig));
        setter.accept(rabbitmqLogConfig, value);
        Assert.assertEquals(getter.apply(rabbitmqLogConfig), value);
    }
abstract function to test properties get and set.

@param getter Object Get Function
@param setter Object Set Function
@param value  Object Function Value
@param <T>    T
shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-rabbitmq/src/test/java/org/apache/shenyu/plulgin/logging/rabbitmq/config/RabbitmqLogCollectConfigTest.java