@Test
public void testFindDataProviderMethodsShouldThrowIllegalArgumentExceptionIfResolverClassHasIsAbstract() {

    // Given:
    @SuppressWarnings("unchecked")
    final List<Class<? extends DataProviderMethodResolver>> resolverClasses =
            Collections.<Class<? extends DataProviderMethodResolver>>singletonList(AbstractClass.class);
    when(context.getResolverClasses()).thenReturn(resolverClasses);
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("Could not instantiate");
    expectedException.expectMessage("using default constructor");
    // When:
    DataProviderMethodResolverHelper.findDataProviderMethods(context);
    // Then: expect exception
}