Try the JUnit 4 new feature: **Parameterized tests**.