@Test
public void testIsAllowable() throws Exception {

    Invocation invocation = new MockInvocation();
    URL url = URL.valueOf("test://test");
    url = url.addParameter(INTERFACE_KEY, "org.apache.dubbo.rpc.file.TpsService");
    url = url.addParameter(TPS_LIMIT_RATE_KEY, 2);
    url = url.addParameter(TPS_LIMIT_INTERVAL_KEY, 1000);
    for (int i = 0; i < 3; i++) {
        Assertions.assertTrue(defaultTPSLimiter.isAllowable(url, invocation));
    }
}