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

package com.azure.resourcemanager.batch.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.batch.fluent.models.DetectorResponseProperties;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class DetectorResponsePropertiesTests {
    @Test
    public void testDeserialize() {
        DetectorResponseProperties model =
            BinaryData.fromString("{\"value\":\"rbirphxe\"}").toObject(DetectorResponseProperties.class);
        Assertions.assertEquals("rbirphxe", model.value());
    }

    @Test
    public void testSerialize() {
        DetectorResponseProperties model = new DetectorResponseProperties().withValue("rbirphxe");
        model = BinaryData.fromObject(model).toObject(DetectorResponseProperties.class);
        Assertions.assertEquals("rbirphxe", model.value());
    }
}
