* If the activity should be updated.
*/
@SuppressWarnings("unchecked")
private void coreTestExecute(final long id, final boolean toFlag, final boolean shouldChange)
{
UpdateActivityFlagRequest rqst = new UpdateActivityFlagRequest(id, toFlag);
boolean result = sut.execute(rqst);
getEntityManager().flush();
Query q = getEntityManager().createQuery("FROM Activity WHERE id = :id").setParameter("id", id);