CON-1988 mock AM groups in unit tests