@Test
public void findShouldReturnStatisticsForProjectOrderedByDescendingValue() throws Exception
{
StatisticRefEnum statRef = StatisticRefEnum.CREATED_ISSUE_COUNT;
createStatisticRef(statRef);
UserWrapper bobUserWrapper = createUserWrapper("bob", "Sponge Bob");
UserWrapper patrickUserWrapper = createUserWrapper("patrick", "Patrick Star");
final String projectKey = "PKEY";
final String version = "1.0";
daoService.createOrUpdate(bobUserWrapper, projectKey, version, statRef, 1);
daoService.createOrUpdate(patrickUserWrapper, projectKey, version, statRef, 5);