@@ -0,0 +1,2075 @@
+package com.proofpoint.cloudmanagement.service.inventoryclient;%0A%0Aimport com.google.common.collect.ImmutableSet;%0Aimport com.proofpoint.json.JsonCodec;%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0Aimport static com.proofpoint.testing.EquivalenceTester.equivalenceTester;%0A%0Apublic class TestInventorySystem%0A%7B%0A    private static final JsonCodec%3CInventorySystem%3E CODEC = JsonCodec.jsonCodec(InventorySystem.class);%0A%0A    @Test%0A    public void testEquivalence()%0A    %7B%0A        equivalenceTester()%0A                .addEquivalentGroup(%0A                        new InventorySystem(%22name1%22),%0A                        new InventorySystem(%22name1%22).setSerialNumber(%22serial1%22).setRoles(ImmutableSet.of(%22111%22)),%0A                        new InventorySystem(%22name1%22).setSerialNumber(%22serial2%22).setRoles(ImmutableSet.of(%22111%22)),%0A                        new InventorySystem(%22name1%22).setSerialNumber(%22serial1%22).setRoles(ImmutableSet.of(%22222%22)))%0A                .addEquivalentGroup(%0A                        new InventorySystem(%22name2%22),%0A                        new InventorySystem(%22name2%22).setSerialNumber(%22serial1%22).setRoles(ImmutableSet.of(%22111%22)),%0A                        new InventorySystem(%22name2%22).setSerialNumber(%22serial2%22).setRoles(ImmutableSet.of(%22111%22)),%0A                        new InventorySystem(%22name2%22).setSerialNumber(%22serial1%22).setRoles(ImmutableSet.of(%22222%22)))%0A                .check();%0A    %7D%0A%0A    @Test(expectedExceptions = NullPointerException.class)%0A    public void testNullNameThrows()%0A    %7B%0A        new InventorySystem(null);%0A    %7D%0A%0A    @Test%0A    public void testJsonRoundTrip()%0A    %7B%0A        InventorySystem original = new InventorySystem(%22test%22).setSerialNumber(%22serial%22).setRoles(ImmutableSet.of(%22role1%22, %22role2%22));%0A%0A        String encoded = CODEC.toJson(original);%0A        InventorySystem decoded = CODEC.fromJson(encoded);%0A%0A        Assert.assertEquals(decoded.getFqdn(), original.getFqdn());%0A        Assert.assertEquals(decoded.getSerialNumber(), original.getSerialNumber());%0A        Assert.assertEquals(decoded.getRoles(), original.getRoles());%0A    %7D%0A%7D%0A

Add tests for InventorySystem class