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

package com.azure.resourcemanager.devcenter.generated;

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

public final class ProjectUpdatePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProjectUpdateProperties model =
            BinaryData
                .fromString(
                    "{\"devCenterId\":\"kujysvlejuvfq\",\"description\":\"rlyxwjkcprbnw\",\"maxDevBoxesPerUser\":1500151010}")
                .toObject(ProjectUpdateProperties.class);
        Assertions.assertEquals("kujysvlejuvfq", model.devCenterId());
        Assertions.assertEquals("rlyxwjkcprbnw", model.description());
        Assertions.assertEquals(1500151010, model.maxDevBoxesPerUser());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ProjectUpdateProperties model =
            new ProjectUpdateProperties()
                .withDevCenterId("kujysvlejuvfq")
                .withDescription("rlyxwjkcprbnw")
                .withMaxDevBoxesPerUser(1500151010);
        model = BinaryData.fromObject(model).toObject(ProjectUpdateProperties.class);
        Assertions.assertEquals("kujysvlejuvfq", model.devCenterId());
        Assertions.assertEquals("rlyxwjkcprbnw", model.description());
        Assertions.assertEquals(1500151010, model.maxDevBoxesPerUser());
    }
}
