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

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.models.KeyVaultKeyReferenceKeyVault;
import org.junit.jupiter.api.Assertions;

public final class KeyVaultKeyReferenceKeyVaultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        KeyVaultKeyReferenceKeyVault model =
            BinaryData
                .fromString("{\"id\":\"fzmpjwyivq\",\"name\":\"f\",\"type\":\"vhrfsphuagrt\"}")
                .toObject(KeyVaultKeyReferenceKeyVault.class);
        Assertions.assertEquals("fzmpjwyivq", model.id());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        KeyVaultKeyReferenceKeyVault model = new KeyVaultKeyReferenceKeyVault().withId("fzmpjwyivq");
        model = BinaryData.fromObject(model).toObject(KeyVaultKeyReferenceKeyVault.class);
        Assertions.assertEquals("fzmpjwyivq", model.id());
    }
}
