### Question:
UserDao { void create(User user) { entityManager.persist(user); }    }### Answer:
@Test void createTest() { User user = new User(); userDao.create(user); Mockito.verify(entityManager).persist(user); }