// Path: spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaControllerTests.java
// static void setInstance(ApplicationInfoManager infoManager) throws IllegalAccessException {
// 	Field instance = ReflectionUtils.findField(ApplicationInfoManager.class, "instance");
// 	ReflectionUtils.makeAccessible(instance);
// 	instance.set(null, infoManager);
// }


import java.util.HashMap;
import java.util.Map;
import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.eureka.util.StatusInfo;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.springframework.cloud.netflix.eureka.server.EurekaControllerTests.setInstance;
/*
 * Copyright 2016-2022 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.cloud.netflix.eureka.server;




class EurekaControllerReplicasTests {

	String noAuthList1 = "https://test1.com";

	String noAuthList2 = noAuthList1 + ",https://test2.com";

	String authList1 = "https://user:pwd@test1.com";

	String authList2 = authList1 + ",https://user2:pwd2@test2.com";

	String combinationAuthList1 = "http://test1.com,http://user2:pwd2@test2.com";

	String combinationAuthList2 = "http://test3.com,http://user4:pwd4@test4.com";

	String combinationNoAuthList1 = "http://test1.com,http://test2.com";

	String combinationNoAuthList2 = "http://test3.com,http://test4.com";

	String totalAutoList = combinationAuthList1 + "," + combinationAuthList2;

	String totalNoAutoList = combinationNoAuthList1 + "," + combinationNoAuthList2;

	String empty = new String();

	private ApplicationInfoManager original;

	private InstanceInfo instanceInfo;

	@BeforeEach
	void setup() throws Exception {
		this.original = ApplicationInfoManager.getInstance();
// Path: spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaControllerTests.java
// static void setInstance(ApplicationInfoManager infoManager) throws IllegalAccessException {
// 	Field instance = ReflectionUtils.findField(ApplicationInfoManager.class, "instance");
// 	ReflectionUtils.makeAccessible(instance);
// 	instance.set(null, infoManager);
// }


// Path: spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/EurekaControllerReplicasTests.java
import java.util.HashMap;
import java.util.Map;
import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.eureka.util.StatusInfo;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.springframework.cloud.netflix.eureka.server.EurekaControllerTests.setInstance;

/*
 * Copyright 2016-2022 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.cloud.netflix.eureka.server;




class EurekaControllerReplicasTests {

	String noAuthList1 = "https://test1.com";

	String noAuthList2 = noAuthList1 + ",https://test2.com";

	String authList1 = "https://user:pwd@test1.com";

	String authList2 = authList1 + ",https://user2:pwd2@test2.com";

	String combinationAuthList1 = "http://test1.com,http://user2:pwd2@test2.com";

	String combinationAuthList2 = "http://test3.com,http://user4:pwd4@test4.com";

	String combinationNoAuthList1 = "http://test1.com,http://test2.com";

	String combinationNoAuthList2 = "http://test3.com,http://test4.com";

	String totalAutoList = combinationAuthList1 + "," + combinationAuthList2;

	String totalNoAutoList = combinationNoAuthList1 + "," + combinationNoAuthList2;

	String empty = new String();

	private ApplicationInfoManager original;

	private InstanceInfo instanceInfo;

	@BeforeEach
	void setup() throws Exception {
		this.original = ApplicationInfoManager.getInstance();
		setInstance(mock(ApplicationInfoManager.class));