@Test
public void testFindCandidateBeansAppliesAnnotatedMethodFilter() {

    String basePackage = "faux.package";
    Set<BeanDefinition> filteredComponents = new HashSet<BeanDefinition>();
    mockProvider.resetFilters(false);
    expectLastCall();
    mockProvider.addIncludeFilter(EasyMock.isA(AnnotatedMethodFilter.class));
    expectLastCall();
    expect(mockProvider.findCandidateComponents(eq(basePackage.replace('.', '/')))).
               andReturn(filteredComponents);
    replayMocks();
    impl.findCandidateBeans(basePackage, SomeAnno.class);
    verifyMocks();
}