Fix endpoint parser example usage code

This example now assumes that the endpoint parser
will actually return an endpoint object like it is supposed to.