title: Why is `java.util.LinkedHashMap` not equal when key and value are identical?
body: <p>I have a linkedHashMap with just one element and I want to compare it for equality. So I wrote the following spock test case:</p>
  
  <pre><code>    def "Get average value for a date key"() {
      given:
      def ex = ["08-2018": 13 as BigDecimal] as Map&lt;String, Integer&gt;
  
      when:
      def wta = new worktime_average()
      def result = wta.get_time_vals(wtime, '08-2018') as Map&lt;String, Integer&gt;
  
      then:
      result.values()[0] == ex.values()[0] // Pass!
      result.keySet() == ex.keySet() // Pass!
      result == ex // Failed!!
      }
  </code></pre>
  
  <p>It fails saying:</p>
  
  <pre><code>result == ex
  |      |  |
  |      |  [08-2018:13] (java.util.LinkedHashMap)
  |      false
  [08-2018:13] (java.util.LinkedHashMap)
  </code></pre>
  
  <p>I have no clue why. Any guesses?</p>