@Test
public void integerPropertyValue() throws ScriptException {

    scope.put("foo", null);
    new JavaScript("test","foo = 4.0").exec(scope);
    assertThat(scope.get("foo")).isEqualTo(Integer.valueOf(4));
}