@Test
public void testGetOperationLimitNullAndMostRecentIdGreaterThanLastId(DbOperationRecordDto dtoFromMemCache) {

    // Given
    Long lastId = 1L;
    when(memcacheService.get(MemcacheKey.DB_OPERATION_COUNTER.getName())).thenReturn(2L);
    Map<String, Object> mapFromMemCache = Maps.newHashMap();
    mapFromMemCache.put("dummyKey", dtoFromMemCache);
    when(memcacheService.getAll(anyCollection())).thenReturn(mapFromMemCache);
    // when
    List<DbOperationRecordDto> results = operationService.getOperations(lastId, null);
    // then
    verify(memcacheService).getAll(Lists.newArrayList(MemcacheKey.DB_OPERATION_RECORD_PREFIX.getName() +
            2));
    verify(memcacheService).get(MemcacheKey.DB_OPERATION_COUNTER.getName());
    assertEquals(1, results.size());
    assertEquals(dtoFromMemCache, results.get(0));
}