private static Statistic generateStatistic(int duration, int rightCount, int mistakeCount) {
        DateTime start = new DateTime();
        Date startTime = start.toDate();
        Date finishTime = start.plusSeconds(duration).toDate();

        Statistic statistic = new StatisticImpl();
        statistic.setStartTime(startTime);
        statistic.setFinishTime(finishTime);

        for (int i = 0; i < rightCount; i++) {
            statistic.incRightQuestions();
        }
        for (int i = 0; i < mistakeCount; i++) {
            statistic.incMistakeQuestions();
        }

        return statistic;
    }