Controversial sex offender program faces key moment in court