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

package com.azure.resourcemanager.devcenter.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devcenter.fluent.models.GalleryInner;
import org.junit.jupiter.api.Assertions;

public final class GalleryInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GalleryInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"provisioningState\":\"Updating\",\"galleryResourceId\":\"hhbcsglummajtjao\"},\"id\":\"obnbdxkqpxokaj\",\"name\":\"onpimexgstxg\",\"type\":\"po\"}")
                .toObject(GalleryInner.class);
        Assertions.assertEquals("hhbcsglummajtjao", model.galleryResourceId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        GalleryInner model = new GalleryInner().withGalleryResourceId("hhbcsglummajtjao");
        model = BinaryData.fromObject(model).toObject(GalleryInner.class);
        Assertions.assertEquals("hhbcsglummajtjao", model.galleryResourceId());
    }
}
