Yes, it seems that current code is also broken;

````java
        if (mapContainer.getMapConfig().getInMemoryFormat().equals(MapConfig.InMemoryFormat.BINARY)) {
            return toData(value1).equals(toData(value2));
        } else if (mapContainer.getMapConfig().getInMemoryFormat().equals(MapConfig.InMemoryFormat.OBJECT)) {
            return toObject(value1).equals(toObject(value2));
        }
        return value1.equals(value2);
````