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

package com.azure.resourcemanager.hdinsight.containers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.containers.models.TrinoUserPlugin;
import org.junit.jupiter.api.Assertions;

public final class TrinoUserPluginTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        TrinoUserPlugin model =
            BinaryData
                .fromString("{\"enabled\":false,\"name\":\"iebwwaloayqcgwrt\",\"path\":\"uzgwyzmhtx\"}")
                .toObject(TrinoUserPlugin.class);
        Assertions.assertEquals(false, model.enabled());
        Assertions.assertEquals("iebwwaloayqcgwrt", model.name());
        Assertions.assertEquals("uzgwyzmhtx", model.path());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        TrinoUserPlugin model =
            new TrinoUserPlugin().withEnabled(false).withName("iebwwaloayqcgwrt").withPath("uzgwyzmhtx");
        model = BinaryData.fromObject(model).toObject(TrinoUserPlugin.class);
        Assertions.assertEquals(false, model.enabled());
        Assertions.assertEquals("iebwwaloayqcgwrt", model.name());
        Assertions.assertEquals("uzgwyzmhtx", model.path());
    }
}
