@@ -0,0 +1,869 @@
+// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.%0Apackage com.yahoo.vespa.hosted.provision.persistence;%0A%0Aimport com.yahoo.component.Version;%0Aimport com.yahoo.config.provision.NodeType;%0Aimport org.junit.Test;%0A%0Aimport java.util.Map;%0Aimport java.util.TreeMap;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author mpolden%0A */%0Apublic class NodeTypeVersionsSerializerTest %7B%0A%0A    @Test%0A    public void test_serialization() %7B%0A        Map%3CNodeType, Version%3E versions = new TreeMap%3C%3E();%0A        versions.put(NodeType.host, Version.fromString(%227.1%22));%0A        versions.put(NodeType.confighost, Version.fromString(%227.2%22));%0A%0A        Map%3CNodeType, Version%3E serialized = NodeTypeVersionsSerializer.fromJson(NodeTypeVersionsSerializer.toJson(versions));%0A        assertEquals(versions, serialized);%0A    %7D%0A%0A%7D%0A

Test NodeTypeVersionsSerializer