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

package com.azure.resourcemanager.hybridcontainerservice.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridcontainerservice.models.AddonStatus;
import org.junit.jupiter.api.Assertions;

public final class AddonStatusTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AddonStatus model =
            BinaryData
                .fromString("{\"errorMessage\":\"pusuesn\",\"phase\":\"dejbavo\",\"ready\":true}")
                .toObject(AddonStatus.class);
        Assertions.assertEquals("pusuesn", model.errorMessage());
        Assertions.assertEquals("dejbavo", model.phase());
        Assertions.assertEquals(true, model.ready());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AddonStatus model = new AddonStatus().withErrorMessage("pusuesn").withPhase("dejbavo").withReady(true);
        model = BinaryData.fromObject(model).toObject(AddonStatus.class);
        Assertions.assertEquals("pusuesn", model.errorMessage());
        Assertions.assertEquals("dejbavo", model.phase());
        Assertions.assertEquals(true, model.ready());
    }
}
