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

package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.StorageAccount;
import org.junit.jupiter.api.Assertions;

public final class StorageAccountTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        StorageAccount model =
            BinaryData
                .fromString("{\"id\":\"rtwnawjslbi\",\"subscriptionId\":\"ojgcyzt\",\"accountName\":\"mznbaeqphch\"}")
                .toObject(StorageAccount.class);
        Assertions.assertEquals("rtwnawjslbi", model.id());
        Assertions.assertEquals("ojgcyzt", model.subscriptionId());
        Assertions.assertEquals("mznbaeqphch", model.accountName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        StorageAccount model =
            new StorageAccount().withId("rtwnawjslbi").withSubscriptionId("ojgcyzt").withAccountName("mznbaeqphch");
        model = BinaryData.fromObject(model).toObject(StorageAccount.class);
        Assertions.assertEquals("rtwnawjslbi", model.id());
        Assertions.assertEquals("ojgcyzt", model.subscriptionId());
        Assertions.assertEquals("mznbaeqphch", model.accountName());
    }
}
