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

package azure.resourcemanager.methodsubscriptionid.generated;

import azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource1Properties;
import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;

public final class SubscriptionResource1PropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SubscriptionResource1Properties model
            = BinaryData.fromString("{\"provisioningState\":\"Canceled\",\"description\":\"ybbejhph\"}")
                .toObject(SubscriptionResource1Properties.class);
        Assertions.assertEquals("ybbejhph", model.description());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SubscriptionResource1Properties model = new SubscriptionResource1Properties().withDescription("ybbejhph");
        model = BinaryData.fromObject(model).toObject(SubscriptionResource1Properties.class);
        Assertions.assertEquals("ybbejhph", model.description());
    }
}
