public int startTest(int testConfigId) {
        return invoke(TEST_CONFIGS, testConfigId, "start",
                new RequestClosure<JsonObject>() {
                    @Override
                    public JsonObject call(Invocation.Builder request) {
                        return request.post(null, JsonObject.class);
                    }
                },
                new ResponseClosure<JsonObject, Integer>() {
                    @Override
                    public Integer call(JsonObject json) {
                        return json.getInt("id", -1);
                    }
                }
        );
    }
public int startTest ( int testConfigId ) { return invoke ( TEST_CONFIGS , testConfigId , "start" , new RequestClosure < JsonObject > ( ) { @ Override public JsonObject call ( Invocation . Builder request ) { return request . post ( null , JsonObject . class ) ; } } , new ResponseClosure < JsonObject , Integer > ( ) { @ Override public Integer call ( JsonObject json ) { return json . getInt ( "id" , - 1 ) ; } } ) ; }
Starts a test.

@param testConfigId id of the test configuration
@return test-instance ID for the just created load test