private Set<Method> expectedMethods() {
        new HashSet<>();
        Set<Method> methodsWithMetadata =
                Arrays.stream(testAdviceWithMetadata.getClass().getDeclaredMethods()).collect(Collectors.toSet());
        Set<Method> methodsWithOutMetadata =
                Arrays.stream(testAdviceWithOutMetadata.getClass().getDeclaredMethods()).collect(Collectors.toSet());
        Set<Method> methodsForInheritedExceptions =
                Arrays.stream(testAdviceForInheritedExceptions.getClass().getDeclaredMethods())
                        .collect(Collectors.toSet());

        return Stream.of(methodsWithMetadata, methodsWithOutMetadata, methodsForInheritedExceptions)
                .flatMap(Collection::stream)
                .filter(method -> method.isAnnotationPresent(GrpcExceptionHandler.class))
                .collect(Collectors.toSet());
    }
A test to verify that the grpc exception advice auto configuration works.

@author Andjelko Perisic (andjelko.perisic@gmail.com)
tests/src/test/java/net/devh/boot/grpc/test/advice/AdviceIsPresentAutoConfigurationTest.java