@Test
public void quotaNotExceededIfRequestCountLessThanAllowed() {

    when(requestRegistry.tick("key")).thenReturn(10L);
    when(requestsPolicy.isValid(10L)).thenReturn(true);
    assertFalse(quotaService.isQuotaExceeded("key"));
    verify(requestRegistry).tick("key");
    verify(requestsPolicy).isValid(10L);
    verifyNoMoreInteractions(requestRegistry, requestsPolicy);
}