@Test(dataProvider = ARQUILLIAN_DATA_PROVIDER)
@SpecAssertions({ @SpecAssertion(section = "11.3.1", id = "ab") })
public void testGetBeanManager(BravoMarker bravoMarker) {
// Test BDA01
BeanManager alphaManager = AlphaLocator.getBeanManager();
assertNotNull(alphaManager);
assertEquals(alphaManager.getBeans(Alpha.class, PowerfulLiteral.INSTANCE).size(), 1);
// Bravo is an alternative enabled in BDA02 only
assertEquals(alphaManager.getBeans(Bravo.class).size(), 0);
// Test BDA02
assertNotNull(bravoMarker);
BeanManager bravoManager = bravoMarker.getBeanManager();
assertNotNull(bravoManager);
assertEquals(bravoManager.getBeans(Alpha.class, PowerfulLiteral.INSTANCE).size(), 1);
assertEquals(bravoManager.getBeans(Bravo.class).size(), 1);
}