    @Test
    public void value() {

        ModelNodeResult result = new ModelNodeResult(DEFINED_RESULT_BOOLEAN);
        assertTrue(result.booleanValue());
        assertTrue(result.booleanValue(false));

        result = new ModelNodeResult(DEFINED_RESULT_NUMBER);
        assertEquals(13, result.intValue());
        assertEquals(13L, result.longValue());
        assertEquals(13.0, result.doubleValue(), 0.00000001);
        assertEquals("13", result.stringValue());
        assertEquals(13, result.intValue(42));
        assertEquals(13L, result.longValue(42L));
        assertEquals(13.0, result.doubleValue(23.8), 0.00000001);
        assertEquals("13", result.stringValue("42"));
    }