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

package com.azure.resourcemanager.logz.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logz.models.UserRoleRequest;
import org.junit.jupiter.api.Assertions;

public final class UserRoleRequestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UserRoleRequest model = BinaryData.fromString("{\"emailAddress\":\"ltyfsop\"}").toObject(UserRoleRequest.class);
        Assertions.assertEquals("ltyfsop", model.emailAddress());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        UserRoleRequest model = new UserRoleRequest().withEmailAddress("ltyfsop");
        model = BinaryData.fromObject(model).toObject(UserRoleRequest.class);
        Assertions.assertEquals("ltyfsop", model.emailAddress());
    }
}
