Maybe simpler test would be to create copy of `data`:
```dart
dataObj.forEach((key, value) {
  dataCopy[key] = value;
}
```
and then `expect(dataCopy, equals(data))`.