@Test
public void testDataProviderResolverContextShouldAddTestMethodsDeclaringClassToLocationsIfLocationsIsEmpty() {

    // Given:
    List<Class<?>> emptyLocations = emptyList();
    // When:
    DataProviderResolverContext result = new DataProviderResolverContext(testMethod, resolverClasses,
            resolveStrategy, emptyLocations, dataProviderAnnotationClass, dataProviderName);
    // Then:
    assertThat(result.getLocations()).containsOnly(testMethod.getDeclaringClass());
}