assertThat(stats.jobsLog.get().size(), is(1));
stats.operationsLog.get().add(new OperationContextLog(
new OperationContext(UUID.randomUUID(), "foo", 2L), null));
stats.operationsLog.get().add(new OperationContextLog(
new OperationContext(UUID.randomUUID(), "foo", 3L), null));
stats.listener.onRefreshSettings(ImmutableSettings.builder()
.put(CrateSettings.STATS_ENABLED.settingName(), true)
.put(CrateSettings.STATS_OPERATIONS_LOG_SIZE.settingName(), 1).build());