AbstractUseDataProviderArgumentProvider extends AbstractDataProviderArgumentProvider<SOURCE_ANNOTATION> { @Deprecated protected Object invokeDataProviderMethodToRetrieveData(Method dataProviderMethod, ExtensionContext context) { return invokeDataProviderMethodToRetrieveData(dataProviderMethod, true, context); } protected  AbstractUseDataProviderArgumentProvider(Class<DATAPROVIDER_ANNOTATION> dataProviderAnnotationClass,
            DataConverter dataConverter); protected  AbstractUseDataProviderArgumentProvider(Class<DATAPROVIDER_ANNOTATION> dataProviderAnnotationClass); @Override Stream<? extends Arguments> provideArguments(ExtensionContext context);  }
@Test void testInvokeDataProviderMethodToRetrieveDataShouldThrowParameterResolutionExceptionIfDataProviderInvocationThrows() throws Exception { Method dataProviderMethod = this.getClass().getDeclaredMethod( "testInvokeDataProviderMethodToRetrieveDataShouldThrowParameterResolutionExceptionIfDataProviderInvocationThrows"); when(extensionContext.getRoot()).thenReturn(extensionContext); when(extensionContext.getStore(any(Namespace.class))).thenReturn(store); Exception result = assertThrows(ParameterResolutionException.class, () -> underTest.invokeDataProviderMethodToRetrieveData(dataProviderMethod, true, extensionContext)); assertThat(result).hasMessageMatching("Exception while invoking dataprovider method '.*': .*"); }