private <T> void checkNewQualifiedBean(Bean<T> bean, Type... requiredTypes) {
assertTrue(typeSetMatches(bean.getTypes(), requiredTypes));
// Has scope @Dependent,
assertEquals(bean.getScope(), Dependent.class);
// Has exactly one qualifier...
assertTrue(annotationSetMatches(bean.getQualifiers(), new NewLiteral(bean.getBeanClass())));
// Has no bean EL name
assertNull(bean.getName());
// Has no stereotypes
assertTrue(bean.getStereotypes() == null || bean.getStereotypes().isEmpty());
// Is not an alternative