Hearing is battleground for same-sex marriage debate