diff --git a/unit-tests/src/test/java/org/eclipse/collections/impl/bimap/mutable/HashBiMapTest.java b/unit-tests/src/test/java/org/eclipse/collections/impl/bimap/mutable/HashBiMapTest.java index 7d3e7f0e30..223c460cae 100755 --- a/unit-tests/src/test/java/org/eclipse/collections/impl/bimap/mutable/HashBiMapTest.java +++ b/unit-tests/src/test/java/org/eclipse/collections/impl/bimap/mutable/HashBiMapTest.java @@ -113,13 +113,12 @@ public void forcePut_inverseKeyPreservation() Key key2 = new Key("2"); Key value1 = new Key("abc"); - Key value2 = new Key("xyz"); Key duplicateOfKey1 = new Key("1"); - HashBiMap biMap = this.newMapWithKeysValues(key1, value1, key2, value2); + HashBiMap biMap = this.newMapWithKeysValues(key1, value1, key2, new Key("xyz")); - biMap.forcePut(duplicateOfKey1, value2); + biMap.forcePut(duplicateOfKey1, new Key("xyz")); Assert.assertSame(key1, Iterate.getFirst(biMap.entrySet()).getKey()); Assert.assertSame(key1, Iterate.getFirst(biMap.inverse().entrySet()).getValue());