title: Is there a one-line way to write this same code but using some type of mutable map in Java 8?
body: <pre><code>  private Map&lt;String,Object&gt; contactQuestion = ImmutableMap.of(&quot;pageForm&quot;,&quot;contactInfo&quot;, &quot;questionList&quot;,Arrays.asList(ImmutableMap.of(&quot;active&quot;,false)));
  </code></pre>
  <p>I'm defining this variable at the class level in a JUnit test, but I've realized I need the maps to be mutable. I wrote the code initially using the ImmutableMap class because it offered this convenient way of building the map in-line. I've found that in my tests I actually need to mutate these maps. I tried to use a HashMap but HashMap doesn't seem to have any function similar to ImmutableMap's <code>of()</code>. Is there some clever alternative here?</p>
  <p>Thanks for any advice</p>