@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");
String projectKey = "PKEY";
daoService.createOrUpdate(bobUserWrapper, projectKey, statRef, 1);
daoService.createOrUpdate(patrickUserWrapper, projectKey, statRef, 5);
entityManager.flushAll();