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

package com.azure.resourcemanager.webpubsub.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.webpubsub.models.LiveTraceCategory;
import org.junit.jupiter.api.Assertions;

public final class LiveTraceCategoryTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LiveTraceCategory model =
            BinaryData.fromString("{\"name\":\"mtxpsiebtfh\",\"enabled\":\"esap\"}").toObject(LiveTraceCategory.class);
        Assertions.assertEquals("mtxpsiebtfh", model.name());
        Assertions.assertEquals("esap", model.enabled());
    }

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