hasBean<T extends Object> function
Matcher
hasBean<T extends Object>()
Matches a context with at least one bean of type T, parent contexts
included; takes the same contexts as hasSingleBean.
Implementation
Matcher hasBean<T extends Object>() =>
_BeanCount<T>((count) => count > 0, 'a bean of $T');