Having @Named("foo.bar.baz") class Bean1 and @Named("foo.bar") class Bean2
this fails as expected.
If we however have @Named("foo.bar.baz") class Bean1 and @Named("foo") class Bean2 then this invalid scenario is not detected by Weld