How to modify static test object to dynamic for assertion

???

Please follow this advice: