### Question:
StatusUtil { 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.getDate(); } } return -1; } StatusUtil(StatusManager sm);  StatusUtil(Context context); static boolean contextHasStatusListener(Context context); static List<Status> filterStatusListByTimeThreshold(List<Status> rawList, long threshold); void addStatus(Status status); void addInfo(Object caller, String msg); void addWarn(Object caller, String msg); void addError(Object caller, String msg,
      Throwable t); boolean hasXMLParsingErrors(long threshold); boolean noXMLParsingErrorsOccurred(long threshold); int getHighestLevel(long threshold); boolean isErrorFree(long threshold); boolean isWarningOrErrorFree(long threshold); boolean containsMatch(long threshold, int level, String regex); boolean containsMatch(int level, String regex); boolean containsMatch(String regex); int matchCount(String regex); boolean containsException(Class<?> exceptionType); long timeOfLastReset();  }### Answer:
@Test public void emptyStatusListShouldResultInNotFound() { assertEquals(-1, statusUtil.timeOfLastReset()); }
@Test public void withoutResetsStatusUtilShouldReturnNotFound() { context.getStatusManager().add(new InfoStatus("test", this)); assertEquals(-1, statusUtil.timeOfLastReset()); }
@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()); }