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