public RateLimitProto.RateLimit getServiceRateLimitRule(String namespace, String service) {
		LOG.debug("Get service rate limit rules with namespace:{} and service:{}.", namespace, service);

		ServiceRule serviceRule = getServiceRule(namespace, service, ServiceEventKey.EventType.RATE_LIMITING);
		if (serviceRule != null) {
			Object rule = serviceRule.getRule();
			if (rule instanceof RateLimitProto.RateLimit) {
				return (RateLimitProto.RateLimit) rule;
			}
		}

		return null;
	}
@Test
	public void testGetServiceRateLimitRule() {
		final String testNamespace = "testNamespace";
		final String testService = "testService";

		RateLimitProto.RateLimit rateLimit = RateLimitProto.RateLimit.getDefaultInstance();
		ServiceRule serviceRule = new ServiceRuleByProto(rateLimit,
				"111",
				false,
				ServiceEventKey.EventType.ROUTING);
		ServiceRuleResponse serviceRuleResponse = new ServiceRuleResponse(serviceRule);

		when(consumerAPI.getServiceRule(
				argThat(request -> request != null
						&& testNamespace.equals(request.getNamespace())
						&& testService.equals(request.getService())
						&& ServiceEventKey.EventType.RATE_LIMITING.equals(request.getRuleType()))
		)).thenReturn(serviceRuleResponse);

		ServiceRuleManager serviceRuleManager = new ServiceRuleManager(sdkContext, consumerAPI);
		RateLimitProto.RateLimit rateLimitRule = serviceRuleManager.getServiceRateLimitRule(testNamespace, testService);

		assertThat(rateLimitRule).isNotNull();
	}