diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/CHANGELOG.md b/sdk/graphservices/azure-resourcemanager-graphservices/CHANGELOG.md
index 5e600b87b400e..e25b13e5cf00a 100644
--- a/sdk/graphservices/azure-resourcemanager-graphservices/CHANGELOG.md
+++ b/sdk/graphservices/azure-resourcemanager-graphservices/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2023-05-17)
+
+- Azure Resource Manager GraphServices client library for Java. This package contains Microsoft Azure SDK for GraphServices Management SDK. Self service experience for Microsoft Graph metered services. Package tag package-2022-09-22-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/README.md b/sdk/graphservices/azure-resourcemanager-graphservices/README.md
index f7d48ece0b42a..fafaa1f1c8d52 100644
--- a/sdk/graphservices/azure-resourcemanager-graphservices/README.md
+++ b/sdk/graphservices/azure-resourcemanager-graphservices/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-graphservices
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/SAMPLE.md b/sdk/graphservices/azure-resourcemanager-graphservices/SAMPLE.md
index 22c3fc0c4f612..dab34d1ef1735 100644
--- a/sdk/graphservices/azure-resourcemanager-graphservices/SAMPLE.md
+++ b/sdk/graphservices/azure-resourcemanager-graphservices/SAMPLE.md
@@ -37,7 +37,7 @@ public final class AccountOperationCreateAndUpdateSamples {
manager
.accountOperations()
.define("11111111-aaaa-1111-bbbb-1111111111111")
- .withRegion((String) null)
+ .withRegion("global")
.withExistingResourceGroup("testResourceGroupGRAM")
.withProperties(new AccountResourceProperties().withAppId("11111111-aaaa-1111-bbbb-111111111111"))
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/samples/java/com/azure/resourcemanager/graphservices/generated/AccountOperationCreateAndUpdateSamples.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/samples/java/com/azure/resourcemanager/graphservices/generated/AccountOperationCreateAndUpdateSamples.java
index 9f0f019232f74..c2ab94d0da9e0 100644
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/samples/java/com/azure/resourcemanager/graphservices/generated/AccountOperationCreateAndUpdateSamples.java
+++ b/sdk/graphservices/azure-resourcemanager-graphservices/src/samples/java/com/azure/resourcemanager/graphservices/generated/AccountOperationCreateAndUpdateSamples.java
@@ -22,7 +22,7 @@ public static void createAccountResource(com.azure.resourcemanager.graphservices
manager
.accountOperations()
.define("11111111-aaaa-1111-bbbb-1111111111111")
- .withRegion((String) null)
+ .withRegion("global")
.withExistingResourceGroup("testResourceGroupGRAM")
.withProperties(new AccountResourceProperties().withAppId("11111111-aaaa-1111-bbbb-111111111111"))
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsCreateAndUpdateMockTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsCreateAndUpdateMockTests.java
deleted file mode 100644
index 2bbff5f047cbf..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsCreateAndUpdateMockTests.java
+++ /dev/null
@@ -1,90 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.graphservices.GraphServicesManager;
-import com.azure.resourcemanager.graphservices.models.AccountResource;
-import com.azure.resourcemanager.graphservices.models.AccountResourceProperties;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountOperationsCreateAndUpdateMockTests {
- @Test
- public void testCreateAndUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"systemData\":{\"createdByType\":\"ManagedIdentity\",\"createdAt\":\"2021-07-31T08:54:57Z\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-02-05T00:34:52Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"appId\":\"pteehzzv\",\"billingPlanId\":\"yqrimzin\"},\"location\":\"vswjdk\",\"tags\":{\"ohjtckw\":\"oodqxhcrm\",\"sqwpgrjb\":\"dsoifiyipj\",\"mocpc\":\"norcjxvsnbyxqab\",\"c\":\"shurzafbljjgpbto\"},\"id\":\"mkljavb\",\"name\":\"idtqajzyu\",\"type\":\"pku\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- GraphServicesManager manager =
- GraphServicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AccountResource response =
- manager
- .accountOperations()
- .define("prwzwbnguitnwui")
- .withRegion("idf")
- .withExistingResourceGroup("uouq")
- .withProperties(new AccountResourceProperties().withAppId("y"))
- .withTags(mapOf("dkfthwxmnt", "dzuhtymwi", "aop", "i", "jcmmxdcufufsrp", "km"))
- .create();
-
- Assertions.assertEquals("vswjdk", response.location());
- Assertions.assertEquals("oodqxhcrm", response.tags().get("ohjtckw"));
- Assertions.assertEquals("pteehzzv", response.properties().appId());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsDeleteByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index 4ae8a79960324..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsDeleteByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.graphservices.GraphServicesManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountOperationsDeleteByResourceGroupWithResponseMockTests {
- @Test
- public void testDeleteWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- GraphServicesManager manager =
- GraphServicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .accountOperations()
- .deleteByResourceGroupWithResponse("xgjvtbv", "ysszdnrujqguh", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsGetByResourceGroupWithResponseMockTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsGetByResourceGroupWithResponseMockTests.java
deleted file mode 100644
index da0aef0d7ce93..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountOperationsGetByResourceGroupWithResponseMockTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.graphservices.GraphServicesManager;
-import com.azure.resourcemanager.graphservices.models.AccountResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountOperationsGetByResourceGroupWithResponseMockTests {
- @Test
- public void testGetByResourceGroupWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"systemData\":{\"createdByType\":\"User\",\"createdAt\":\"2020-12-29T19:26:23Z\",\"lastModifiedByType\":\"ManagedIdentity\",\"lastModifiedAt\":\"2021-10-23T18:32:55Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"appId\":\"q\",\"billingPlanId\":\"ol\"},\"location\":\"p\",\"tags\":{\"jaoyfhrtx\":\"algbquxigjyjg\"},\"id\":\"lnerkujysvleju\",\"name\":\"fqawrlyxw\",\"type\":\"kcprbnw\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- GraphServicesManager manager =
- GraphServicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- AccountResource response =
- manager
- .accountOperations()
- .getByResourceGroupWithResponse("rtumkdosvq", "hbmdgbbjfdd", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("p", response.location());
- Assertions.assertEquals("algbquxigjyjg", response.tags().get("jaoyfhrtx"));
- Assertions.assertEquals("q", response.properties().appId());
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountPatchResourceTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountPatchResourceTests.java
deleted file mode 100644
index 1a1744a4bc561..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountPatchResourceTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.models.AccountPatchResource;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AccountPatchResourceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AccountPatchResource model =
- BinaryData
- .fromString("{\"tags\":{\"lthqtrgqjbp\":\"phlxa\",\"jrwzox\":\"zfsinzgvf\",\"felluwfzitonpe\":\"j\"}}")
- .toObject(AccountPatchResource.class);
- Assertions.assertEquals("phlxa", model.tags().get("lthqtrgqjbp"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AccountPatchResource model =
- new AccountPatchResource()
- .withTags(mapOf("lthqtrgqjbp", "phlxa", "jrwzox", "zfsinzgvf", "felluwfzitonpe", "j"));
- model = BinaryData.fromObject(model).toObject(AccountPatchResource.class);
- Assertions.assertEquals("phlxa", model.tags().get("lthqtrgqjbp"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceInnerTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceInnerTests.java
deleted file mode 100644
index 44bba6a5bf380..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceInnerTests.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.fluent.models.AccountResourceInner;
-import com.azure.resourcemanager.graphservices.models.AccountResourceProperties;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AccountResourceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AccountResourceInner model =
- BinaryData
- .fromString(
- "{\"systemData\":{\"createdByType\":\"User\",\"createdAt\":\"2021-10-29T04:44:12Z\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-04-04T05:13:51Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"appId\":\"yhtnapczwlokjye\",\"billingPlanId\":\"kvnipjoxz\"},\"location\":\"nchgej\",\"tags\":{\"ahuxinpm\":\"dmailzydehojw\",\"vcputegj\":\"njaqwixjspro\",\"uuvmkjozkrwfnd\":\"wmfdatscmdvpjhul\"},\"id\":\"odjpslwejd\",\"name\":\"vwryoqpso\",\"type\":\"cctazakljlahbc\"}")
- .toObject(AccountResourceInner.class);
- Assertions.assertEquals("nchgej", model.location());
- Assertions.assertEquals("dmailzydehojw", model.tags().get("ahuxinpm"));
- Assertions.assertEquals("yhtnapczwlokjye", model.properties().appId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AccountResourceInner model =
- new AccountResourceInner()
- .withLocation("nchgej")
- .withTags(
- mapOf(
- "ahuxinpm", "dmailzydehojw", "vcputegj", "njaqwixjspro", "uuvmkjozkrwfnd", "wmfdatscmdvpjhul"))
- .withProperties(new AccountResourceProperties().withAppId("yhtnapczwlokjye"));
- model = BinaryData.fromObject(model).toObject(AccountResourceInner.class);
- Assertions.assertEquals("nchgej", model.location());
- Assertions.assertEquals("dmailzydehojw", model.tags().get("ahuxinpm"));
- Assertions.assertEquals("yhtnapczwlokjye", model.properties().appId());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceListTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceListTests.java
deleted file mode 100644
index 30ed5c81c7c55..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceListTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.fluent.models.AccountResourceInner;
-import com.azure.resourcemanager.graphservices.models.AccountResourceList;
-import com.azure.resourcemanager.graphservices.models.AccountResourceProperties;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AccountResourceListTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AccountResourceList model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"mhquvgjxp\",\"value\":[{\"systemData\":{\"createdByType\":\"Application\",\"createdAt\":\"2021-05-25T17:48:57Z\",\"lastModifiedByType\":\"Key\",\"lastModifiedAt\":\"2021-08-27T14:18:12Z\"},\"properties\":{\"provisioningState\":\"Canceled\",\"appId\":\"phrupidgsybbejhp\",\"billingPlanId\":\"ycm\"},\"location\":\"xaobhdxbmtqioqjz\",\"tags\":{\"izhwlrxy\":\"bmufpown\",\"bpazlobcufpdzn\":\"qsoqijgkd\"},\"id\":\"btcqq\",\"name\":\"nq\",\"type\":\"lhqgnufooojy\"},{\"systemData\":{\"createdByType\":\"User\",\"createdAt\":\"2021-04-03T02:29:48Z\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-05-21T02:15:24Z\"},\"properties\":{\"provisioningState\":\"Canceled\",\"appId\":\"mglzlhj\",\"billingPlanId\":\"ifkwmrvktsizntoc\"},\"location\":\"pa\",\"tags\":{\"cmpoyfdkfogkny\":\"jpsq\",\"eqsrdeupewnwreit\":\"jofjd\"},\"id\":\"zyf\",\"name\":\"usarhmofc\",\"type\":\"hs\"},{\"systemData\":{\"createdByType\":\"Application\",\"createdAt\":\"2021-08-18T07:24:06Z\",\"lastModifiedByType\":\"Key\",\"lastModifiedAt\":\"2021-11-19T18:09:11Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"appId\":\"kuksjtxukcdm\",\"billingPlanId\":\"rcryuanzwuxzdxta\"},\"location\":\"rlhm\",\"tags\":{\"u\":\"pmrqobm\"},\"id\":\"knryrtihfxtij\",\"name\":\"pzvgnwzsymglzufc\",\"type\":\"zk\"},{\"systemData\":{\"createdByType\":\"Application\",\"createdAt\":\"2021-01-03T15:44:14Z\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-07-21T15:51:12Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"appId\":\"cbjy\",\"billingPlanId\":\"git\"},\"location\":\"xqhabi\",\"tags\":{\"y\":\"kxwczbyscnpqxuhi\",\"wby\":\"n\"},\"id\":\"rkxvdum\",\"name\":\"grtfwvu\",\"type\":\"xgaudccs\"}]}")
- .toObject(AccountResourceList.class);
- Assertions.assertEquals("mhquvgjxp", model.nextLink());
- Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).location());
- Assertions.assertEquals("bmufpown", model.value().get(0).tags().get("izhwlrxy"));
- Assertions.assertEquals("phrupidgsybbejhp", model.value().get(0).properties().appId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AccountResourceList model =
- new AccountResourceList()
- .withNextLink("mhquvgjxp")
- .withValue(
- Arrays
- .asList(
- new AccountResourceInner()
- .withLocation("xaobhdxbmtqioqjz")
- .withTags(mapOf("izhwlrxy", "bmufpown", "bpazlobcufpdzn", "qsoqijgkd"))
- .withProperties(new AccountResourceProperties().withAppId("phrupidgsybbejhp")),
- new AccountResourceInner()
- .withLocation("pa")
- .withTags(mapOf("cmpoyfdkfogkny", "jpsq", "eqsrdeupewnwreit", "jofjd"))
- .withProperties(new AccountResourceProperties().withAppId("mglzlhj")),
- new AccountResourceInner()
- .withLocation("rlhm")
- .withTags(mapOf("u", "pmrqobm"))
- .withProperties(new AccountResourceProperties().withAppId("kuksjtxukcdm")),
- new AccountResourceInner()
- .withLocation("xqhabi")
- .withTags(mapOf("y", "kxwczbyscnpqxuhi", "wby", "n"))
- .withProperties(new AccountResourceProperties().withAppId("cbjy"))));
- model = BinaryData.fromObject(model).toObject(AccountResourceList.class);
- Assertions.assertEquals("mhquvgjxp", model.nextLink());
- Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).location());
- Assertions.assertEquals("bmufpown", model.value().get(0).tags().get("izhwlrxy"));
- Assertions.assertEquals("phrupidgsybbejhp", model.value().get(0).properties().appId());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourcePropertiesTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourcePropertiesTests.java
deleted file mode 100644
index 05ce7650bf1f0..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourcePropertiesTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.models.AccountResourceProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class AccountResourcePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AccountResourceProperties model =
- BinaryData
- .fromString("{\"provisioningState\":\"Failed\",\"appId\":\"expa\",\"billingPlanId\":\"akhmsbzjhcrz\"}")
- .toObject(AccountResourceProperties.class);
- Assertions.assertEquals("expa", model.appId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AccountResourceProperties model = new AccountResourceProperties().withAppId("expa");
- model = BinaryData.fromObject(model).toObject(AccountResourceProperties.class);
- Assertions.assertEquals("expa", model.appId());
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceSystemDataTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceSystemDataTests.java
deleted file mode 100644
index 69a0df204292d..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountResourceSystemDataTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.models.AccountResourceSystemData;
-import com.azure.resourcemanager.graphservices.models.CreatedByType;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class AccountResourceSystemDataTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AccountResourceSystemData model =
- BinaryData
- .fromString(
- "{\"createdByType\":\"Key\",\"createdAt\":\"2021-06-19T00:38:01Z\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-12-05T14:26:12Z\"}")
- .toObject(AccountResourceSystemData.class);
- Assertions.assertEquals(CreatedByType.KEY, model.createdByType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T00:38:01Z"), model.createdAt());
- Assertions.assertEquals(CreatedByType.APPLICATION, model.lastModifiedByType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-12-05T14:26:12Z"), model.lastModifiedAt());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AccountResourceSystemData model =
- new AccountResourceSystemData()
- .withCreatedByType(CreatedByType.KEY)
- .withCreatedAt(OffsetDateTime.parse("2021-06-19T00:38:01Z"))
- .withLastModifiedByType(CreatedByType.APPLICATION)
- .withLastModifiedAt(OffsetDateTime.parse("2021-12-05T14:26:12Z"));
- model = BinaryData.fromObject(model).toObject(AccountResourceSystemData.class);
- Assertions.assertEquals(CreatedByType.KEY, model.createdByType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T00:38:01Z"), model.createdAt());
- Assertions.assertEquals(CreatedByType.APPLICATION, model.lastModifiedByType());
- Assertions.assertEquals(OffsetDateTime.parse("2021-12-05T14:26:12Z"), model.lastModifiedAt());
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountsListByResourceGroupMockTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountsListByResourceGroupMockTests.java
deleted file mode 100644
index ced7cff90877d..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountsListByResourceGroupMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.graphservices.GraphServicesManager;
-import com.azure.resourcemanager.graphservices.models.AccountResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountsListByResourceGroupMockTests {
- @Test
- public void testListByResourceGroup() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"systemData\":{\"createdByType\":\"Key\",\"createdAt\":\"2021-04-13T11:18:15Z\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-04-21T04:18:16Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"appId\":\"rl\",\"billingPlanId\":\"ugjzzdatqxhocdge\"},\"location\":\"blgphuticn\",\"tags\":{\"okftyxolniwpwcuk\":\"aozwyiftyhxhu\"},\"id\":\"fkgiawxk\",\"name\":\"ryplwckbasyypn\",\"type\":\"dhsgcba\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- GraphServicesManager manager =
- GraphServicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.accounts().listByResourceGroup("bdkvwrwjf", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("blgphuticn", response.iterator().next().location());
- Assertions.assertEquals("aozwyiftyhxhu", response.iterator().next().tags().get("okftyxolniwpwcuk"));
- Assertions.assertEquals("rl", response.iterator().next().properties().appId());
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountsListMockTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountsListMockTests.java
deleted file mode 100644
index bb6f17d620ce8..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/AccountsListMockTests.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.graphservices.GraphServicesManager;
-import com.azure.resourcemanager.graphservices.models.AccountResource;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AccountsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"systemData\":{\"createdByType\":\"User\",\"createdAt\":\"2021-06-02T10:50:15Z\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-01-20T05:42Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"appId\":\"oulzndlikwyq\",\"billingPlanId\":\"fgibmadgakeq\"},\"location\":\"rxybz\",\"tags\":{\"kzsmodm\":\"dqytbciqfouflmm\"},\"id\":\"lougpbkw\",\"name\":\"mutduqktaps\",\"type\":\"wgcu\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- GraphServicesManager manager =
- GraphServicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.accounts().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("rxybz", response.iterator().next().location());
- Assertions.assertEquals("dqytbciqfouflmm", response.iterator().next().tags().get("kzsmodm"));
- Assertions.assertEquals("oulzndlikwyq", response.iterator().next().properties().appId());
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationDisplayTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationDisplayTests.java
deleted file mode 100644
index 169455c2b2fe2..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationDisplayTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.models.OperationDisplay;
-
-public final class OperationDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationDisplay model =
- BinaryData
- .fromString(
- "{\"provider\":\"bkyqduu\",\"resource\":\"tcj\",\"operation\":\"dzevndhkrw\",\"description\":\"appd\"}")
- .toObject(OperationDisplay.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationDisplay model = new OperationDisplay();
- model = BinaryData.fromObject(model).toObject(OperationDisplay.class);
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationInnerTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationInnerTests.java
deleted file mode 100644
index 6d698511fac53..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationInnerTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.fluent.models.OperationInner;
-import com.azure.resourcemanager.graphservices.models.OperationDisplay;
-
-public final class OperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationInner model =
- BinaryData
- .fromString(
- "{\"name\":\"sntnbybkzgcw\",\"isDataAction\":true,\"display\":{\"provider\":\"xwrljdouskcqvkoc\",\"resource\":\"jdkwtnhxbnjb\",\"operation\":\"sqrglssainq\",\"description\":\"wnzlljfmppeeb\"},\"origin\":\"user\",\"actionType\":\"Internal\"}")
- .toObject(OperationInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationInner model = new OperationInner().withDisplay(new OperationDisplay());
- model = BinaryData.fromObject(model).toObject(OperationInner.class);
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationListResultTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationListResultTests.java
deleted file mode 100644
index fdb4e28c04cb4..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationListResultTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.models.OperationListResult;
-
-public final class OperationListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"name\":\"v\",\"isDataAction\":false,\"display\":{\"provider\":\"hn\",\"resource\":\"ngbwjz\",\"operation\":\"fygxgispemvtzfk\",\"description\":\"ubljofxqe\"},\"origin\":\"user\",\"actionType\":\"Internal\"}],\"nextLink\":\"jhqjbasvmsmjqul\"}")
- .toObject(OperationListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationListResult model = new OperationListResult();
- model = BinaryData.fromObject(model).toObject(OperationListResult.class);
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationsListMockTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationsListMockTests.java
deleted file mode 100644
index c327b38f96abe..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/OperationsListMockTests.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.graphservices.GraphServicesManager;
-import com.azure.resourcemanager.graphservices.models.Operation;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class OperationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"name\":\"krlkhbzhfepg\",\"isDataAction\":false,\"display\":{\"provider\":\"zloc\",\"resource\":\"c\",\"operation\":\"ierhhbcsglummaj\",\"description\":\"aodxo\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- GraphServicesManager manager =
- GraphServicesManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/TagUpdateTests.java b/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/TagUpdateTests.java
deleted file mode 100644
index cc2f1a430c659..0000000000000
--- a/sdk/graphservices/azure-resourcemanager-graphservices/src/test/java/com/azure/resourcemanager/graphservices/generated/TagUpdateTests.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.graphservices.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.graphservices.models.TagUpdate;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class TagUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- TagUpdate model =
- BinaryData
- .fromString(
- "{\"tags\":{\"ypininm\":\"jkjlxofpdvhpfx\",\"po\":\"yhuybbkpod\",\"ognarxzxtheotus\":\"ginuvamih\"}}")
- .toObject(TagUpdate.class);
- Assertions.assertEquals("jkjlxofpdvhpfx", model.tags().get("ypininm"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- TagUpdate model =
- new TagUpdate()
- .withTags(mapOf("ypininm", "jkjlxofpdvhpfx", "po", "yhuybbkpod", "ognarxzxtheotus", "ginuvamih"));
- model = BinaryData.fromObject(model).toObject(TagUpdate.class);
- Assertions.assertEquals("jkjlxofpdvhpfx", model.tags().get("ypininm"));
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}