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

package com.azure.resourcemanager.databoxedge.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databoxedge.models.RoleSinkInfo;
import org.junit.jupiter.api.Assertions;

public final class RoleSinkInfoTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RoleSinkInfo model = BinaryData.fromString("{\"roleId\":\"oefki\"}").toObject(RoleSinkInfo.class);
        Assertions.assertEquals("oefki", model.roleId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RoleSinkInfo model = new RoleSinkInfo().withRoleId("oefki");
        model = BinaryData.fromObject(model).toObject(RoleSinkInfo.class);
        Assertions.assertEquals("oefki", model.roleId());
    }
}
