Use a modified Turing Test with specific questions designed to assess thought processes, like psychological examinations.
Then make sure the AI is never exposed to those questions or their antecedents during training.
Then when you ask those questions after training, you will be able assess whether the AI is actually sentient or not.