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

package com.azure.resourcemanager.appconfiguration.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters;
import org.junit.jupiter.api.Assertions;

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

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