title: What is the idiomatic Hamcrest pattern to assert that each element of an iterable matches a given matcher?
body: <p>Examine the following snippet:</p>
  
  <pre><code>    assertThat(
          Arrays.asList("1x", "2x", "3x", "4z"),
          not(hasItem(not(endsWith("x"))))
      );
  </code></pre>
  
  <p>This asserts that the list doesn't have an element that doesn't end with "x". This, of course, is the double negatives way of saying that all elements of the list ends with "x".</p>
  
  <p>Also note that the snippet throws:</p>
  
  <pre><code>java.lang.AssertionError: 
  Expected: not a collection containing not a string ending with "x"
       got: &lt;[1x, 2x, 3x, 4z]&gt;
  </code></pre>
  
  <p>This lists the entire list, instead of just the element that doesn't end with "x".</p>
  
  <p>So is there an idiomatic way of:</p>
  
  <ul>
  <li>Asserting that each element ends with "x" (without double negatives)</li>
  <li>On assertion error, list only those elements that doesn't end with "x"</li>
  </ul>