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

package com.azure.resourcemanager.mediaservices.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mediaservices.models.DashSettings;
import org.junit.jupiter.api.Assertions;

public final class DashSettingsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DashSettings model = BinaryData.fromString("{\"role\":\"smlmbtxhwgfwsrta\"}").toObject(DashSettings.class);
        Assertions.assertEquals("smlmbtxhwgfwsrta", model.role());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DashSettings model = new DashSettings().withRole("smlmbtxhwgfwsrta");
        model = BinaryData.fromObject(model).toObject(DashSettings.class);
        Assertions.assertEquals("smlmbtxhwgfwsrta", model.role());
    }
}
