@Test
    public void testArithmeticUpdate() {
        roundtripSerializeJsonAndMatch(inputJson(
                "{",
                "    'update': 'DOCUMENT_ID',",
                "    'fields': {",
                "        'int_field': {",
                "            'increment': 3.0",
                "        },",
                "        'float_field': {",
                "            'decrement': 1.5",
                "        },",
                "        'double_field': {",
                "            'divide': 3.2",
                "        },",
                "        'byte_field': {",
                "            'multiply': 2.0",
                "        }",
                "    }",
                "}"
        ));
    }
Tests roundtrip serialization (JSON -> DocumentUpdate -> Buffer -> DocumentUpdate -> JSON) of document updates.

@author Vegard Sjonfjell
document/src/test/java/com/yahoo/document/json/DocumentUpdateJsonSerializerTest.java