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

package com.azure.resourcemanager.security.generated;

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

public final class AutomationValidationStatusInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AutomationValidationStatusInner model =
            BinaryData
                .fromString("{\"isValid\":false,\"message\":\"tczheydbsdshmkx\"}")
                .toObject(AutomationValidationStatusInner.class);
        Assertions.assertEquals(false, model.isValid());
        Assertions.assertEquals("tczheydbsdshmkx", model.message());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AutomationValidationStatusInner model =
            new AutomationValidationStatusInner().withIsValid(false).withMessage("tczheydbsdshmkx");
        model = BinaryData.fromObject(model).toObject(AutomationValidationStatusInner.class);
        Assertions.assertEquals(false, model.isValid());
        Assertions.assertEquals("tczheydbsdshmkx", model.message());
    }
}
