@Test
void intercept() {

    assertThatThrownBy(() -> config.intercept(invocation -> null))
            .isInstanceOf(Error.class)
            .hasMessageContaining("interceptor class must not be anonymous class or lambda");
}