@Bean
        StubFactory customStubFactory() {
            return new StandardJavaGrpcStubFactory() {

                @Override
                public boolean isApplicable(final Class<? extends AbstractStub<?>> stubType) {
                    return CustomStub.class.isAssignableFrom(stubType);
                }

                @Override
                protected String getFactoryMethodName() {
                    return "custom";
                }

            };
        }
A test checking that the client injection works.

@author Hemant Vyas (v313hemant@gmail.com)
tests/src/test/java/net/devh/boot/grpc/test/inject/GrpcClientMetaAnnotationTest.java