@Test
public void javaMapToJavaScriptObject() throws ScriptException {

    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("boo", "yah");
    map.put("foo", "bar");
    scope.put("map", map);
    assertThat(new JavaScript("test","map").exec(scope)).isEqualTo(map);
    assertThat(new JavaScript("test","map.foo == 'bar'").exec(scope)).isEqualTo(true);
}