@Test
public void shouldRetryToLoadCacheOnQuotaExhausted() throws IOException {

  reset(projectsList);
  when(projectsList.execute())
      .thenThrow(QUOTA_EXHAUSTED)
      .thenReturn(new ListProjectsResponse().setProjects(PROJECTS));
  validator.cacheResources();
  verify(projectsList, times(2)).execute();
}