List<PolicyInfo> allPolicies = Arrays.asList(lpInfo, hpInfo);
collector.collect(allPolicies);
Statistics lpSt = collector.getRaidStatistics(lpId);
LOG.info("Statistics collected " + lpSt);
LOG.info("Statistics html:\n " + lpSt.htmlTable());
Counters raided = lpSt.getSourceCounters(RaidState.RAIDED);
Counters tooSmall = lpSt.getSourceCounters(RaidState.NOT_RAIDED_TOO_SMALL);
Counters tooNew = lpSt.getSourceCounters(RaidState.NOT_RAIDED_TOO_NEW);
Counters otherPolicy = lpSt.getSourceCounters(RaidState.NOT_RAIDED_OTHER_POLICY);
Counters notRaided = lpSt.getSourceCounters(RaidState.NOT_RAIDED_BUT_SHOULD);
assertCounters(raided, lpCodec.isDirRaid? 2 : 0, 2, 7, 7 * 1024L, 7 * 1024L);
assertCounters(tooSmall, 0, 0, 0, 0L, 0L);
assertCounters(tooNew, 0, 0, 0, 0L, 0L);
// the NOT_RAIDED files could be raided by high priority policy
assertCounters(otherPolicy, lpCodec.isDirRaid? 1 : 0, 1, 5, 15 * 1024L,