introduce new assertInstanceOf() method