public static <V> void assertThat(Sampler<V> variable, Matcher<? super V> criteria) {
        assertThat(sampleOf(variable, criteria));
    }
public static < V > void assertThat ( Sampler < V > variable , Matcher < ? super V > criteria ) { assertThat ( sampleOf ( variable , criteria ) ) ; }
Assert that a sample of the variable satisfies the criteria.
<p>Example:</p>
<pre>
{@code

Sampler<Integer> threadCount = ...;
...
assertThat(threadCount, is(9));
}