You can use `assertInstanceOf` instead here.