void (String className, Description aTestClass, List<Description> tests) { for (String paramName : new String[]{"[0]", "[1]"}) { final Description param1 = Description.createSuiteDescription(paramName); aTestClass.addChild(param1); final Description testDescription = Description.createTestDescription(className, "testName" + paramName); tests.add(testDescription); param1.addChild(testDescription); } }