Usman Khawaja looks guaranteed to open the batting in this summer's home Ashes after shaking off a tough period to star in the first Test against Sri Lanka.