### Question:
ByBindingAttributeMappingsResolverFinder { public Iterable<ByBindingAttributeMappingsResolver> findCandidates(Object view) { List<ByBindingAttributeMappingsResolver> resolvers = Lists.newArrayList(); Iterable<InitializedBindingAttributeMappingsProvider> providers = initializedBindingAttributeMappingsProviders.findCandidates( view.getClass()); ViewAttributeBinderFactory viewAttributeBinderFactory = viewAttributeBinderFactories.create(view); for (InitializedBindingAttributeMappingsProvider provider : providers) { InitailizedBindingAttributeMappings bindingAttributeMappings = provider.create(viewAttributeBinderFactory); resolvers.add(new ByBindingAttributeMappingsResolver(bindingAttributeMappings)); } return resolvers; } ByBindingAttributeMappingsResolverFinder(
			InitializedBindingAttributeMappingsProviders initializedBindingAttributeMappingsProviders,
			ViewAttributeBinderFactories viewAttributeBinderFactories); Iterable<ByBindingAttributeMappingsResolver> findCandidates(Object view);  }### Answer:
@Test public void givenTwoCandidateProviders_whenFindCandidateResolvers_thenTwoResolversShouldBeReturned() { View view = mock(View.class); Collection<InitializedBindingAttributeMappingsProvider> candiateProviders = Lists.<InitializedBindingAttributeMappingsProvider> newArrayList( mock(InitializedBindingAttributeMappingsProvider.class), mock(InitializedBindingAttributeMappingsProvider.class)); when(providerMap.findCandidates(view.getClass())).thenReturn(candiateProviders); ByBindingAttributeMappingsResolverFinder finder = new ByBindingAttributeMappingsResolverFinder(providerMap, viewAttributeBinderFactories); Iterable<ByBindingAttributeMappingsResolver> candidateResolvers = finder.findCandidates(view); assertThat(Iterables.size(candidateResolvers), is(2)); }