@Test
    void badGrpcClientBeanTest() {
        final SpringApplication app = new SpringApplication(
                BadGrpcClientBeanConfig.class,
                InProcessConfiguration.class,
                ServiceConfiguration.class,
                BaseAutoConfiguration.class);

        final BeanCreationException error = assertThrows(BeanCreationException.class, app::run);

        final BeanCreationException cause = (BeanCreationException) error.getCause();
        assertEquals("badStub", cause.getBeanName());
        assertThat(cause)
                .hasMessageContaining(BadGrpcClientBeanConfig.class.getName())
                .hasMessageContaining(String.class.getName());
    }
Test case covering probable conflicting situations with {@link GrpcClientBean} and {@link GrpcClient} usage.
tests/src/test/java/net/devh/boot/grpc/test/inject/GrpcClientBeanInjectionNegativeTest.java