MapPutChange extends NodeFeatureChange { public Object getValue() { return value; } MapPutChange(NodeFeature map, String key, Object value); String getKey(); Object getValue();  }
@Test public void testJsonValueTypes() { JsonValue stringValue = getValue("string"); Assert.assertSame(JsonType.STRING, stringValue.getType()); Assert.assertEquals("string", stringValue.asString()); JsonValue numberValue = getValue(Integer.valueOf(1)); Assert.assertSame(JsonType.NUMBER, numberValue.getType()); Assert.assertEquals(1, numberValue.asNumber(), 0); JsonValue booleanValue = getValue(Boolean.TRUE); Assert.assertSame(JsonType.BOOLEAN, booleanValue.getType()); Assert.assertTrue(booleanValue.asBoolean()); JsonObject jsonInput = Json.createObject(); JsonValue jsonValue = getValue(jsonInput); Assert.assertSame(JsonType.OBJECT, jsonValue.getType()); Assert.assertSame(jsonInput, jsonValue); }