Also mark the two assertOutput methods private, to make the API surface smaller. PiperOrigin-RevId: 308228186