Entity mocking and example mock unit test