TEST(GTestLinkedList, TestInstanceOf) { LinkedList::Ptr l = LinkedList::create(); ASSERT_TRUE(l->instanceof(Type<LinkedList>::id())); ASSERT_TRUE(l->instanceof(Type<List>::id())); ASSERT_TRUE(l->instanceof(Type<Collection>::id())); ASSERT_TRUE(l->instanceof(Type<Mutable>::id())); ASSERT_TRUE(l->instanceof(Type<Object>::id())); }