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

package com.azure.resourcemanager.datadog.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datadog.fluent.models.LinkedResourceInner;
import org.junit.jupiter.api.Assertions;

public final class LinkedResourceInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LinkedResourceInner model = BinaryData.fromString("{\"id\":\"gakeqsr\"}").toObject(LinkedResourceInner.class);
        Assertions.assertEquals("gakeqsr", model.id());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LinkedResourceInner model = new LinkedResourceInner().withId("gakeqsr");
        model = BinaryData.fromObject(model).toObject(LinkedResourceInner.class);
        Assertions.assertEquals("gakeqsr", model.id());
    }
}
