[TASK] Remove getter dependency in domain model unit tests

Change-Id: I234e2a9c2c8a112a75b07a69687e195f50943201
Resolves: #54176
Reviewed-on: https://review.typo3.org/25924
Reviewed-by: Nico de Haen
Tested-by: Nico de Haen