If you need to create the same test with different inputs, use the @ParameterizedTest annotation and let JUnit do the work for you.

Interest? See this article in Portuguese. If you need help with the language, please let me know.

Testes Parametrizados

Take a look in repo-tip-2 to see a real example.