@Test
public void testEnterScope() {

    Assert.assertNull(observer.currentScope());
    observer.enterScope(Scope.SESSION);
    Assert.assertEquals(Scope.SESSION, observer.currentScope());
    observer.enterScope(Scope.APPLICATION);
    Assert.assertEquals(Scope.APPLICATION, observer.currentScope());
    observer.enterScope(null);
    Assert.assertEquals(Scope.APPLICATION, observer.currentScope());
}