A method should be created for this wait in the TestContainer class and called here.