It would not fail, types are only informative in Dart.
It would fail if `expect(injector.types, new isInstanceOf<Set<Type>>());`.
I agree this is not the best possible test but I think the best we can do.