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

    scope.put("foo", null);
    new JavaScript("test","foo = [ 'foo', 'bar' ]").exec(scope);
    List<Object> list = (List)scope.get("foo");
    assertThat(list.size()).isEqualTo(2);
    assertThat(list.get(0)).isEqualTo("foo");
    assertThat(list.get(1)).isEqualTo("bar");
}