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

package com.azure.resourcemanager.purview.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.purview.models.AccountSkuAutoGenerated;
import com.azure.resourcemanager.purview.models.Name;
import org.junit.jupiter.api.Assertions;

public final class AccountSkuAutoGeneratedTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AccountSkuAutoGenerated model =
            BinaryData
                .fromString("{\"capacity\":98964950,\"name\":\"Standard\"}")
                .toObject(AccountSkuAutoGenerated.class);
        Assertions.assertEquals(98964950, model.capacity());
        Assertions.assertEquals(Name.STANDARD, model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AccountSkuAutoGenerated model = new AccountSkuAutoGenerated().withCapacity(98964950).withName(Name.STANDARD);
        model = BinaryData.fromObject(model).toObject(AccountSkuAutoGenerated.class);
        Assertions.assertEquals(98964950, model.capacity());
        Assertions.assertEquals(Name.STANDARD, model.name());
    }
}
