xample:&lt;br /&gt;&lt;pre&gt;: assumeThat(1, is(1)); // passes foo(); // will execute assumeThat(0, is(1)); // assumption failure! test halts int x = 1 / 0; // will never execute&lt;br /&gt;&lt;/pre&gt; &lt;br /&gt;@param &lt;T&gt; the static type accepted by the matcher (this can flag obvious compile-time problems such as {@code assumeThat(1, is(&quot;a&quot;))}&lt;br /&gt;@link Matcher}s, specifying allowed values &lt;br /&gt;@see org.hamcrest.CoreMatchers&lt;br /&gt;@see org.junit.matchers.JUnitMatchers