 <p>marcos is right, but you have a couple other options as well. First of all, there <em>is</em> an either/or:</p> <pre><code>assertThat(result, either(is(1)).or(is(2))); </code></pre> <p>but if you have more than two items it would probably get unwieldy. Plus, the typechecker gets weird on stuff like that sometimes. For your case, you could do:</p> <pre><code>assertThat(result, isOneOf(1, 2, 3)) </code></pre> <p>or if you already have your options in an array/Collection:</p> <pre><code>assertThat(result, isIn(theCollection)) </code></pre> <p>See also <a href="http://hamcrest.org/JavaHamcrest/javadoc/1.3/org/hamcrest/Matchers.html">Javadoc</a>.</p>