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

package com.azure.resourcemanager.elastic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.elastic.fluent.models.ElasticVersionListFormatInner;
import com.azure.resourcemanager.elastic.models.ElasticVersionListProperties;
import org.junit.jupiter.api.Assertions;

public final class ElasticVersionListFormatInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ElasticVersionListFormatInner model =
            BinaryData
                .fromString("{\"properties\":{\"version\":\"kzsmodm\"}}")
                .toObject(ElasticVersionListFormatInner.class);
        Assertions.assertEquals("kzsmodm", model.properties().version());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ElasticVersionListFormatInner model =
            new ElasticVersionListFormatInner()
                .withProperties(new ElasticVersionListProperties().withVersion("kzsmodm"));
        model = BinaryData.fromObject(model).toObject(ElasticVersionListFormatInner.class);
        Assertions.assertEquals("kzsmodm", model.properties().version());
    }
}
