ConstantFlowRegulator implements ServiceWrapper { public int getRequestPerSecondThreshold() { return requestPerSecondThreshold; } ConstantFlowRegulator();  ConstantFlowRegulator(int requestsPerSecond);  ConstantFlowRegulator(int requestsPerSecond,
                                 ConstantFlowRegulatorExceptionMapper<? extends Exception> mapper); T invoke(Callable<T> c); void invoke(Runnable r); T invoke(Runnable r, T result); void setRequestPerSecondThreshold(int i); int getRequestPerSecondThreshold(); ConstantFlowRegulatorExceptionMapper<? extends Exception> getExceptionMapper(); void setExceptionMapper(ConstantFlowRegulatorExceptionMapper<? extends Exception> mapper);  }
@Test public void testRPSThresholdDefault() { assertEquals(-1, impl.getRequestPerSecondThreshold()); }