@Test
    public void testAssignWeightedSet() {
        roundtripSerializeJsonAndMatch(inputJson(
                "{",
                "    'update': 'DOCUMENT_ID',",
                "    'fields': {",
                "        'int_set': {",
                "            'assign': {",
                "                '123': 456,",
                "                '789': 101112",
                "            }",
                "        },",
                "        'string_set': {",
                "            'assign': {",
                "                'meow': 218478,",
                "                'slurp': 2123",
                "            }",
                "        }",
                "    }",
                "}"
        ));
    }
Tests roundtrip serialization (JSON -> DocumentUpdate -> Buffer -> DocumentUpdate -> JSON) of document updates.

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