### Question:
AnnotationExtractor { public Set<Log.out> getLogOuts(Method method) { return findAnnotationOnMethodOrBridge(method, Log.out.class); } private  AnnotationExtractor(); static AnnotationExtractor getInstance(); Set<Method> getCandidateMethods(Class<?> clazz); boolean hasAnyAnnotation(Method method); boolean hasAnyAnnotation(Parameter parameter); Set<Log> getLogs(Method method); Set<Log.in> getLogIns(Method method); Set<Log.out> getLogOuts(Method method); Set<Log.error> getLogErrors(Method method); Set<Mdc> getMdcs(Method method); List<Set<Log>> getParameterLogs(Method method); List<Set<Mdc>> getParametersMdcs(Method method);  }### Answer:
@Test public void getLogOuts() throws NoSuchMethodException { Method loggedOverriddenMethod = AnnotatedChild.class.getMethod("loggedOverriddenMethod", String.class); Method overriddenMethod = AnnotatedChild.class.getMethod("overriddenMethod", String.class); Method overriddenNotGenericMethod = AnnotatedChild.class.getMethod("overriddenNotGenericMethod", String.class); Set<Log.out> logOuts = annotationExtractor.getLogOuts(loggedOverriddenMethod); Set<Log.out> bridgedLogOuts = annotationExtractor.getLogOuts(overriddenMethod); Set<Log.out> overriddenLogOuts = annotationExtractor.getLogOuts(overriddenNotGenericMethod); assertThat(logOuts, hasSize(1)); assertThat(logOuts.iterator().next().level(), is(DEBUG)); assertThat(bridgedLogOuts, hasSize(1)); assertThat(bridgedLogOuts.iterator().next().level(), is(INFO)); assertThat(overriddenLogOuts, hasSize(1)); assertThat(overriddenLogOuts.iterator().next().level(), is(INFO)); }