### Question:
SessionDaoAdapter implements Dao<Object>, Locator, Queryable, Flushable { public Object update(final Object entity) { AssertArgument.isNotNull(entity, "entity"); session.update(entity); return entity; } SessionDaoAdapter(final Session session); void flush(); Object update(final Object entity); Object insert(final Object entity); Object delete(Object entity); Object lookup(final String name, final Object ... parameters); Object lookup(final String name, final Map<String, ?> parameters); Object lookupByQuery(final String query, final Object ... parameters); Object lookupByQuery(final String query,
			final Map<String, ?> parameters); Session getSession();  }### Answer:
@Test(groups = "unit") public void test_merge() { Object toMerge = new Object(); Object merged = adapter.update(toMerge); verify(session).update(same(toMerge)); assertSame(toMerge, merged); }