How to verify Map size using Hamcrest
<pre><code>Map&lt;Integer, Map&lt;String, String&gt;&gt; mapMap = new HashMap&lt;Integer,Map&lt;String, String&gt;&gt;();
</code></pre>

<p>Currently asserting like this</p>

<pre><code>assertThat(mapMap.size(), is(equalTo(1)));
Or
assertThat(mapMap.values(), hasSize(1));
</code></pre>

<p>Are there any other methods like one used with Lists.</p>

<blockquote>
  <p>assertThat(someListReferenceVariable, hasSize(1));</p>
</blockquote>