Using EntityManagerInterface to simplify injection of mock classes