Hearing test for babies

How does a newborn/young baby get a hearing test?