title: Hamcrest: How to test for multiple properties of an object
body: <pre><code>rules=[{type:"path", value:"abc"},{type:"cookie", value:"xyz"}, ...]
  </code></pre>
  
  <p>I want to find if the array contains an object with properties  (<code>type=path</code> and <code>value=abc</code>)</p>
  
  <p>I tried something like this:
  <code>assertThat(rules, hasItem(hasProperty("type", equals("path"))));</code></p>
  
  <p>But I didn't find a way to combine two <code>hasProperty</code> methods. Can someone help me</p>