Use goog.asserts.assertsInstanceOf