title: How to directly initialize a HashMap (in a literal way)?
body: <p>Is there some way of initializing a Java HashMap like this?:</p>
  
  <pre><code>Map&lt;String,String&gt; test = 
      new HashMap&lt;String, String&gt;{"test":"test","test":"test"};
  </code></pre>
  
  <p>What would be the correct syntax? I have not found anything regarding this. Is this possible? I am looking for the shortest/fastest way to put some "final/static" values in a map that never change and are known in advance when creating the Map.</p>