AbstractOwbBean<ComponentWithObserves7> component = defineManagedBean(ComponentWithObserves7.class);
AbstractOwbBean<ComponentWithObservable1> componentObservable = defineManagedBean(ComponentWithObservable1.class);
WebBeansContext.getInstance().getContextFactory().initRequestContext(null);
ComponentWithObserves7 instance = getManager().getInstance(component);
ComponentWithObservable1 observable = getManager().getInstance(componentObservable);
observable.afterLoggedIn();
Assert.assertEquals("Gurkan", instance.getUserName());
Assert.assertEquals("Rohit_Kelapure", instance.getEventString());
}