### Question:
EntityManagerDaoAdapter implements Dao<Object>, Locator, Queryable, Flushable { public void flush() { entityManager.flush(); } EntityManagerDaoAdapter(final EntityManager entityManager); void flush(); Object update(final Object entity); Object insert(final Object entity); Object delete(Object entity); @SuppressWarnings("unchecked") Collection<Object> lookup(final String name, final Object ... parameters); @SuppressWarnings("unchecked") Collection<Object> lookup(final String name, final Map<String, ?> parameters); @SuppressWarnings("unchecked") Collection<Object> lookupByQuery(final String query, final Object ... parameters); @SuppressWarnings("unchecked") Collection<Object> lookupByQuery(final String query, final Map<String, ?> parameters); EntityManager getEntityManager();  }### Answer:
@Test( groups = "unit" ) public void test_flush() { adapter.flush(); verify(entityManager).flush(); }