@Test
public void javaDoubleToJavaScriptNumber() throws ScriptException {

    scope.put("doubleValue", Double.valueOf(12345.6789d));
    assertThat(new JavaScript("test","typeof doubleValue == 'number'").exec(scope)).isEqualTo(true);
    assertThat(new JavaScript("test","doubleValue == 12345.6789").exec(scope)).isEqualTo(true);
}