@Test
public void testGetScope() {

    ScopedMapItem<String> stringItem1 =
            new ScopedMapItem<String>(Scope.ANONYMOUS, "test1");
    Assert.assertEquals(Scope.ANONYMOUS, stringItem1.getScope());
    ScopedMapItem<String> stringItem2 =
            new ScopedMapItem<String>(Scope.ANONYMOUS, null);
    Assert.assertEquals(Scope.ANONYMOUS, stringItem2.getScope());
    ScopedMapItem<String> stringItem3 =
            new ScopedMapItem<String>(null, "test3");
    Assert.assertEquals(null, stringItem3.getScope());
    ScopedMapItem<String> stringItem4 =
            new ScopedMapItem<String>(null, null);
    Assert.assertEquals(null, stringItem4.getScope());
    ScopedMapItem<Long> longItem1 =
            new ScopedMapItem<Long>(Scope.ANONYMOUS, new Long(1));
    Assert.assertEquals(Scope.ANONYMOUS, longItem1.getScope());
    ScopedMapItem<Long> longItem2 =
            new ScopedMapItem<Long>(Scope.DIALOG, new Long(1));
    Assert.assertEquals(Scope.DIALOG, longItem2.getScope());
}