Use hasMessageThat().isEqualTo(expected) instead. You may also consider
using inexact matching of the message (e.g. hasMessageThat().contains(substring))
for less brittle tests.
AtomicLongMap does not define equality (i.e., it does not implement
equals()), so you probably don't want to call this method. Instead, perform your assertion
on the map view (e.g., assertThat(atomicLongMap.asMap()).isEqualTo(EXPECTED_MAP)).
AtomicLongMap does not define equality (i.e., it does not implement
equals()), so you probably don't want to call this method. Instead, perform your assertion
on the map view (e.g., assertThat(atomicLongMap.asMap()).isNotEqualTo(UNEXPECTED_MAP)).