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

package com.azure.resourcemanager.storagemover.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.storagemover.models.EndpointBaseUpdateProperties;
import org.junit.jupiter.api.Assertions;

public final class EndpointBaseUpdatePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        EndpointBaseUpdateProperties model =
            BinaryData.fromString("{\"description\":\"oifiyipjxsqwpgr\"}").toObject(EndpointBaseUpdateProperties.class);
        Assertions.assertEquals("oifiyipjxsqwpgr", model.description());
    }

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