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

package com.azure.resourcemanager.batch.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.batch.models.KeyVaultReference;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class KeyVaultReferenceTests {
    @Test
    public void testDeserialize() {
        KeyVaultReference model =
            BinaryData.fromString("{\"id\":\"izntocipao\",\"url\":\"ajpsquc\"}").toObject(KeyVaultReference.class);
        Assertions.assertEquals("izntocipao", model.id());
        Assertions.assertEquals("ajpsquc", model.url());
    }

    @Test
    public void testSerialize() {
        KeyVaultReference model = new KeyVaultReference().withId("izntocipao").withUrl("ajpsquc");
        model = BinaryData.fromObject(model).toObject(KeyVaultReference.class);
        Assertions.assertEquals("izntocipao", model.id());
        Assertions.assertEquals("ajpsquc", model.url());
    }
}
