title: Testing content of list ignoring some of the fields
body: <p>I have a scenario where I receive a list from a method call and I would like to assert that the list contains the correct elements. One way to do this would be to look for some detail in each element to see which expected element to compare with - eg. a name. However the elements also contains a random generated UUID that I do not care about comparing.<br>
  And then I thought a test tool might come to my rescue. Take the following simplified example.</p>
  
  <p>I have a class Dog:</p>
  
  <pre><code>public class Dog {
      private String name;
      private Integer age;
  }
  </code></pre>
  
  <p>They are contained in a list:</p>
  
  <pre><code>List&lt;Dog&gt; dogs = ... many dogs
  </code></pre>
  
  <p>Now I want to test that the list contains the expected dogs, but for some reason I do not know some of the fields - let us say <code>age</code>.
  I have tried both using assertj and hamcrest but I cannot find the correct solution that both compares two lists while also ignoring some of the fields.</p>
  
  <p>Until now this is what I have (using hamcrest):</p>
  
  <pre><code>List&lt;Dog&gt; actualDogs = codeUndertest.findDogs(new Owner("Basti"));
  List&lt;Dog&gt; expectedDogs = createExpectedListOfDogsWithoutTheAge();
  
  Matcher.assertThat(actualDogs.get(0), Matcher.is(com.shazam.shazamcrest.matcher.Matchers
      .sameBeanAs(expectedDogs.(0))
      .ignoring("age")
  ))
  </code></pre>
  
  <p>This works but it only compares two objects of class Dog. How do I compare all the dogs in the two list?<br>
  Bonus question: how do I compare the lists without knowing the order or if I only need to assert that the expected dogs are contained in the list.</p>