// 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.DetectorResponseInner;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class DetectorResponseInnerTests {
    @Test
    public void testDeserialize() {
        DetectorResponseInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"value\":\"ihkaetcktvfc\"},\"etag\":\"fsnkymuctq\",\"id\":\"jf\",\"name\":\"ebrjcxe\",\"type\":\"fuwutttxf\"}")
                .toObject(DetectorResponseInner.class);
        Assertions.assertEquals("ihkaetcktvfc", model.value());
    }

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