public PredictorExecution withTestWindows(TestWindowSummary... testWindows) {
        if (this.testWindows == null) {
            setTestWindows(new java.util.ArrayList<TestWindowSummary>(testWindows.length));
        }
        for (TestWindowSummary ele : testWindows) {
            this.testWindows.add(ele);
        }
        return this;
    }
<p>
An array of test windows used to evaluate the algorithm. The <code>NumberOfBacktestWindows</code> from the object
determines the number of windows in the array.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTestWindows(java.util.Collection)} or {@link #withTestWindows(java.util.Collection)} if you want to
override the existing values.
</p>

@param testWindows
       An array of test windows used to evaluate the algorithm. The <code>NumberOfBacktestWindows</code> from the
       object determines the number of windows in the array.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-forecast/src/main/java/com/amazonaws/services/forecast/model/PredictorExecution.java