@Test
public void testCurrentScope() {

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