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

package com.azure.resourcemanager.hybridcontainerservice.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridcontainerservice.models.StorageSpacesExtendedLocation;
import org.junit.jupiter.api.Assertions;

public final class StorageSpacesExtendedLocationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        StorageSpacesExtendedLocation model =
            BinaryData
                .fromString("{\"type\":\"elwuipi\",\"name\":\"jzkzi\"}")
                .toObject(StorageSpacesExtendedLocation.class);
        Assertions.assertEquals("elwuipi", model.type());
        Assertions.assertEquals("jzkzi", model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        StorageSpacesExtendedLocation model = new StorageSpacesExtendedLocation().withType("elwuipi").withName("jzkzi");
        model = BinaryData.fromObject(model).toObject(StorageSpacesExtendedLocation.class);
        Assertions.assertEquals("elwuipi", model.type());
        Assertions.assertEquals("jzkzi", model.name());
    }
}
