TransactionRateLimitingCallback implements OperationCallback { @Override public void failure() { } TransactionRateLimitingCallback(ActorUtils actorUtils); @Override void run(); @Override void pause(); @Override void resume(); @Override void success(); @Override void failure();  }
@Test public void testFailure() { doReturn(1L).when(mockTicker).read(); callback.run(); callback.failure(); verify(mockTimer, never()).update(anyLong(), any(TimeUnit.class)); }