@Test
@SuppressWarnings("unchecked")
public void mapPropertyValue() throws ScriptException {

    scope.put("foo", null);
    new JavaScript("test","foo = { baz: 'qux', boo: 'yah' }").exec(scope);
    Map<String, Object> map = (Map)scope.get("foo");
    assertThat(map.get("baz")).isEqualTo("qux");
    assertThat(map.get("boo")).isEqualTo("yah");
}