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

package com.azure.resourcemanager.imagebuilder.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.imagebuilder.models.DistributeVersionerLatest;
import org.junit.jupiter.api.Assertions;

public final class DistributeVersionerLatestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DistributeVersionerLatest model =
            BinaryData
                .fromString("{\"scheme\":\"Latest\",\"major\":828238885}")
                .toObject(DistributeVersionerLatest.class);
        Assertions.assertEquals(828238885, model.major());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DistributeVersionerLatest model = new DistributeVersionerLatest().withMajor(828238885);
        model = BinaryData.fromObject(model).toObject(DistributeVersionerLatest.class);
        Assertions.assertEquals(828238885, model.major());
    }
}
