Maybe a [parametrised JUnit test](http://www.mkyong.com/unittest/junit-4-tutorial-6-parameterized-test/) would be more appropriate for those?