I need to test some api. For example I have multiple @Test methods in the class to test my functionality, before init I connect to some url of my service, and use it.
Happen to me sometime, and them I found this awesome idea called Parameterized Test, for instance:
http://www.mkyong.com/unittest/junit-4-tutorial-6-parameterized-test/
in this way you can all the same tests couple of time with different argument.