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

package com.azure.resourcemanager.reservations.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.reservations.models.ScopeProperties;
import org.junit.jupiter.api.Assertions;

public final class ScopePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ScopeProperties model =
            BinaryData.fromString("{\"scope\":\"nq\",\"valid\":true}").toObject(ScopeProperties.class);
        Assertions.assertEquals("nq", model.scope());
        Assertions.assertEquals(true, model.valid());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ScopeProperties model = new ScopeProperties().withScope("nq").withValid(true);
        model = BinaryData.fromObject(model).toObject(ScopeProperties.class);
        Assertions.assertEquals("nq", model.scope());
        Assertions.assertEquals(true, model.valid());
    }
}
