title: Hashmap not returning value as expected when retrieving using key
body: <p>Should be simple enough but it's driving me nuts!</p>
  
  <p>Have a HashMap with a Key:Value pair as Long:Dto respectively.</p>
  
  <p>When I debug, I can see the one entry in the Hashmap with a Long value as the key - but when I try a get() using the Key, I'm getting a null back.</p>
  
  <p>For the following:</p>
  
  <pre><code>Map&lt;Long, Dto&gt; response = getMap();
  
  System.out.println("Contents of HashMap: " + response);
  System.out.println("Size of HashMap: " + response.size());
  System.out.println("HashMap Keyset: " + response.keySet());
  System.out.println("HashMap Contains: " + response.containsKey(19999984L));
  System.out.println("HashMap Object: " + response.get(19999984L));
  </code></pre>
  
  <p>I'm getting the following output:</p>
  
  <pre><code>Contents of HashMap: {19999984={productOptionId=19999984, amount={amount=20.99, currency=EUR}, pricingType=MSRP}}
  Size of HashMap: 1
  HashMap Keyset: [19999984]
  HashMap Contains: false
  HashMap Object: null
  </code></pre>
  
  <p>Any suggestions would be appreciated here... this should work surely!</p>
  
  <p>Maybe I'm missing something obvious.</p>
  
  <p>Answer: So it seems my key value is of String type - as below:</p>
  
  <pre><code>System.out.println("Contents of HashMap: " + response);
  System.out.println("Size of HashMap: " + response.size());
  System.out.println("HashMap Keyset: " + response.keySet());
  System.out.println("HashMap Contains: " + response.containsKey("19999984"));
  System.out.println("HashMap Object: " + response.get("19999984"));
  System.out.println("HashMap Class: " + response.getClass());
  </code></pre>