@Test
	public void testInitWithFallbackRedirect() {
		FallbackProperties fallbackProperties = mock(FallbackProperties.class);
		when(gatewayProperties.getFallback()).thenReturn(fallbackProperties);
		when(fallbackProperties.getMode()).thenReturn(ConfigConstants.FALLBACK_REDIRECT);
		when(fallbackProperties.getRedirect()).thenReturn("/test");
		config.init();
		Mono<ServerResponse> responseMono = GatewayCallbackManager.getBlockHandler()
				.handleRequest(mock(ServerWebExchange.class), null);
		HttpHeaders headers = Objects.requireNonNull(responseMono.block()).headers();
		List<String> location = headers.get("Location");
		Assert.assertNotNull(location);
		Assert.assertEquals("/test", location.get(0));
	}
Tests the initialization method when the fallback mode is set to redirect to another URL.
Verifies that the response contains the correct redirect location header.
spring-cloud-alibaba-starters/spring-cloud-alibaba-sentinel-gateway/src/test/java/com/alibaba/cloud/sentinel/gateway/scg/SentinelSCGAutoConfigurationTest.java