Usinge EntityManagerInterface to simplify injection of mock classes