public long timeOfLastReset() {
        List<Status> statusList = sm.getCopyOfStatusList();
        if (statusList == null)
            return -1;

        int len = statusList.size();
        for (int i = len - 1; i >= 0; i--) {
            Status s = statusList.get(i);
            if (CoreConstants.RESET_MSG_PREFIX.equals(s.getMessage())) {
                return s.getTimestamp();
            }
        }
        return -1;
    }
@Test
    public void statusListShouldReturnLastResetTime() {
        context.getStatusManager().add(new InfoStatus("test", this));
        long resetTime = System.currentTimeMillis();
        context.getStatusManager().add(new InfoStatus(CoreConstants.RESET_MSG_PREFIX, this));
        context.getStatusManager().add(new InfoStatus("bla", this));
        assertTrue(resetTime <= statusUtil.timeOfLastReset());
    }