// 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.ImageTemplateCustomizer;
import org.junit.jupiter.api.Assertions;

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

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