// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.iotfirmwaredefense.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.iotfirmwaredefense.models.PairedKey;
import org.junit.jupiter.api.Assertions;

public final class PairedKeyTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PairedKey model =
            BinaryData
                .fromString("{\"id\":\"okth\",\"type\":\"iuaod\",\"additionalProperties\":\"datacpkvxodp\"}")
                .toObject(PairedKey.class);
        Assertions.assertEquals("okth", model.id());
        Assertions.assertEquals("iuaod", model.type());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        PairedKey model = new PairedKey().withId("okth").withType("iuaod").withAdditionalProperties("datacpkvxodp");
        model = BinaryData.fromObject(model).toObject(PairedKey.class);
        Assertions.assertEquals("okth", model.id());
        Assertions.assertEquals("iuaod", model.type());
    }
}
