private String formatTestMethods(List<Test> tests) {
        StringBuilder code = new StringBuilder();
        for (int i = 0; i < tests.size(); i++) {
            Test test = tests.get(i);
            code.append(formatTestMethod(test, i));
        }
        return code.toString();
    }