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

package com.azure.resourcemanager.communication.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.communication.models.LinkNotificationHubParameters;
import org.junit.jupiter.api.Assertions;

public final class LinkNotificationHubParametersTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LinkNotificationHubParameters model =
            BinaryData
                .fromString("{\"resourceId\":\"tfwvukxgaudc\",\"connectionString\":\"snhsjcnyejhkryh\"}")
                .toObject(LinkNotificationHubParameters.class);
        Assertions.assertEquals("tfwvukxgaudc", model.resourceId());
        Assertions.assertEquals("snhsjcnyejhkryh", model.connectionString());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LinkNotificationHubParameters model =
            new LinkNotificationHubParameters().withResourceId("tfwvukxgaudc").withConnectionString("snhsjcnyejhkryh");
        model = BinaryData.fromObject(model).toObject(LinkNotificationHubParameters.class);
        Assertions.assertEquals("tfwvukxgaudc", model.resourceId());
        Assertions.assertEquals("snhsjcnyejhkryh", model.connectionString());
    }
}
