@Test
public void testFindDataProviderMethodsShouldReturnAllMatchesIfMutlipleResolverReturnNonEmptyList() {

    // Given:
    @SuppressWarnings("unchecked")
    final List<Class<? extends DataProviderMethodResolver>> resolverClasses = Arrays
            .<Class<? extends DataProviderMethodResolver>>asList(TestResolver.class, TestResolver.class);
    final Method method = Methods.anyMethod();
    when(context.getResolverClasses()).thenReturn(resolverClasses);
    when(context.getResolveStrategy()).thenReturn(ResolveStrategy.AGGREGATE_ALL_MATCHES);
    TestResolver.methods = singletonList(method);
    // When:
    List<Method> result = DataProviderMethodResolverHelper.findDataProviderMethods(context);
    // Then:
    assertThat(result).containsOnly(method, method);
    assertThat(TestResolver.usedContexts).containsOnly(context, context);
}