@Override
		public boolean matches(Object item) {
			String fileName = (String) item;
			File file = new File(fileName);
			if (!file.exists()) {
				mismatch.append("file ").append(fileName).append(" not found");
				return false;
			}

			BufferedReader reader = null;
			try {
				reader = new BufferedReader(new FileReader(file));
				String lastLine = null;
				String line;

				do {
					line = reader.readLine();
					if (line != null) {
						lastLine = line;
					}
				}
				while (line != null);

				if (lastLine == null) {
					mismatch.append("file ").append(fileName).append(" is empty");
					return false;
				}

				long fileTime = dateFormat.parse(lastLine).getTime();
				if (fileTime - startTime > 60000) {
					mismatch.append("file timestamp was written more than one minute after start of test: ")
							.append(" file timestamp: ")
							.append(lastLine)
							.append(", start of test: ")
							.append(dateFormat.format(new Date(startTime)));
					return false;
				}
			}
			catch (Exception e) {
				throw new RuntimeException(e);
			}
			finally {
				if (reader != null) {
					try {
						reader.close();
					}
					catch (IOException e) {
						// ignore errors on close
					}
				}
			}

			return true;
		}
Return {@code true} if:
<ul>
    <li>The expected file was created</li>
    <li>The file contains a timestamp as its last line</li>
    <li>The timestamp indicates a time not less than 60
        seconds after the test was launched; this handles
        the scenario where a prior test run correctly
        executed the job but the current test run did not</li>
</ul>

@param item name of the timestamp file that should be created by the job
@return true if the file contains an acceptable timestamp
spring-xd-distributed-test/src/test/java/org/springframework/xd/distributed/test/JobStateTests.java