public TestSet testSet(String name, RegressionSuite suite, Project project, Map<String, Object> attributes) {
        // TODO invent consistent solution, possibly remove ability to create Test Sets from project
        if (!suite.getRegressionPlan().getProject().equals(project)) {
            throw new UnsupportedOperationException("Suite should belong to the project passed in parameters");
        }
        TestSet testSet = new TestSet(instance);

        testSet.setName(name);
        testSet.setRegressionSuite(suite);
        testSet.setProject(project);
        addAttributes(testSet, attributes);
        testSet.save();

        return testSet;
    }
public TestSet testSet ( String name , RegressionSuite suite , Project project , Map < String , Object > attributes ) { if ( ! suite . getRegressionPlan ( ) . getProject ( ) . equals ( project ) ) { throw new UnsupportedOperationException ( "Suite should belong to the project passed in parameters" ) ; } TestSet testSet = new TestSet ( instance ) ; testSet . setName ( name ) ; testSet . setRegressionSuite ( suite ) ; testSet . setProject ( project ) ; addAttributes ( testSet , attributes ) ; testSet . save ( ) ; return testSet ; }
Creates a new TestSet with title and project.

@param name       Title of the testSet.
@param suite      Parent RegressionSuite.
@param project    Project to assign.
@param attributes Additional attributes for initialization TestSet.
@return Newly created Test Set.