title: Assert function to check only value from the arrays are contained in the list
body: <p>Could you please help me,</p>
  
  <p>I have a list and an array:</p>
  
  <pre><code>String[] list = new String[] {"milk", "tea", "milk", "tea", "milk", "tea"};
  String[] t = new String[] {"milk", "tea"};
  </code></pre>
  
  <p>I need to verify only the values from t (milk and tea) is contained in the  list, and not any other values example, the string doesn't have any other value like coffee or cookie.</p>
  
  <p>I used </p>
  
  <pre><code> for(int i=0; i&lt; t.length; t++)
   {
   Assert.assertTrue(list.contains(t[i]));
   }
  </code></pre>
  
  <p>But this verifies only if the list contains the values from array. I need to verify it contains "only" them.</p>
  
  <p>Thanks in advance</p>