Do you run this in dart2js-ed code?
There is isInstanceOf matcher in unittest.