Unit test: Entity