JavaTesting a method that accepts list as parameters
<p>I need to test a method that accepts list as parameters.</p>

<p><strong>Method:</strong></p>

<pre><code>public void shuffleCards(List&lt;Integer&gt; data, List&lt;Integer&gt; frequency) {

        Collections.shuffle(data);
        Collections.shuffle(frequency);

    }
</code></pre>

<p>Should i first create a list of data and frequency, and add values to them and then test or is there any onther way></p>

<p>After testing i also need to create a table. My table looks like this. I am not sure if my table is correct either.<a href="https://i.stack.imgur.com/2HicE.png" rel="nofollow"><img src="https://i.stack.imgur.com/2HicE.png" alt="enter image description here"></a></p>