I'm writing some tests on my datomic code. I create a transaction map:

```
(def tx-map
  {:db/id #db/id[:db.part/user -1000235]
   :some-ns/my-attr {:db/id 17592186045421}}

```

It transacts fine. I query for my newly added entity:

```
 (def ent
   "Query result."
   {:db/id 17592186045425})

```

Test to see if all is well:

```
(= (:some-ns/my-attr tx-map) ; {:db/id 17592186045421}
   (:some-ns/my-attr ent))   ; {:db/id 17592186045421}

=> false ; All is not well

```

The reason being?

```
(type (:some-ns/my-attr tx-map)) => clojure.lang.PersistentArrayMap
(type (:some-ns/my-attr ent))    => datomic.query.EntityMap

```

How do I correctly test for equality between a clojure PersistentArrayMap and a datomic EntityMap?