Running integration tests I have their arguments stored as jsons inside of diffrent files. Those files store diffrent test cases which are then tested in diffrent methods. 

I wonder if it possible to create a generic read file method such as this one:

```
  static Stream<Arguments> argumentsOf(String fileName) {
    Path argumentsFilePath = Paths.get(ARGUMENTS_FILES_DIRECTORY + fileName);
    //read and return arguments stored in a file 
  }

```

Together with a functional interface like this one:

```
     static Supplier<Stream<Arguments>> anExampleArgument =
      () -> argumentsOf("some_test_case_argument.json");

```

So I can do something like this:

```
  @ParameterizedTest
  @MethodSource("anExampleArgument.get")
  void test1(String exampleArgument) {
  //...
  }

```

I couldn't find any information regarding this scenario. The example code seen above results in 

```
org.junit.platform.commons.JUnitException: Could not find factory method [anExampleArgument.get] in class [com.company.ExampleIntegrationTest]

```