Source:
<code>public void statusMessageAndContinueSearch_withManyLogs_searchCorrectly() { <START> Instant today = TimeHelper.getInstantDaysOffsetFromNow(0); <END> AdminActivityLogPageAction action = getAction(); ShowPageResult result = getShowPageResult(action); Instant earliestDateInUtc = today.minusMillis(54 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000); verifyManyLogs(55, 0, 54, result.data, result.getStatusMessage(), earliestDateInUtc); long nextSearch = today.toEpochMilli() - 56 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000; action = getAction("searchTimeOffset", String.valueOf(nextSearch)); result = getShowPageResult(action); earliestDateInUtc = today.minusMillis(110 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000); verifyManyLogs(56, 55, 110, result.data, result.getStatusMessage(), earliestDateInUtc); nextSearch = today.toEpochMilli() - 112 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000; action = getAction("searchTimeOffset", String.valueOf(nextSearch)); result = getShowPageResult(action); earliestDateInUtc = Instant.ofEpochMilli(nextSearch - 24 * 60 * 60 * 1000); verifyManyLogs(39, 111, 149, result.data, result.getStatusMessage(), earliestDateInUtc); action = getAction("filterQuery", "request:testdata1"); result = getShowPageResult(action); earliestDateInUtc = today.minusMillis(54 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000); verifyManyLogs(55, 0, 54, result.data, result.getStatusMessage(), earliestDateInUtc); nextSearch = today.toEpochMilli() - 56 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000; action = getAction("filterQuery", "request:testdata1", "searchTimeOffset", String.valueOf(nextSearch)); result = getShowPageResult(action); earliestDateInUtc = Instant.ofEpochMilli(nextSearch - 24 * 60 * 60 * 1000); verifyManyLogs(95, 55, 60, result.data, result.getStatusMessage(), earliestDateInUtc); }</code><technical_language>rename this variable Instant.now()</technical_language>

Target:
public void statusMessageAndContinueSearch_withManyLogs_searchCorrectly() { Instant now = Instant.now(); AdminActivityLogPageAction action = getAction(); ShowPageResult result = getShowPageResult(action); Instant earliestDateInUtc = now.minusMillis(54 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000); verifyManyLogs(55, 0, 54, result.data, result.getStatusMessage(), earliestDateInUtc); long nextSearch = now.toEpochMilli() - 56 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000; action = getAction("searchTimeOffset", String.valueOf(nextSearch)); result = getShowPageResult(action); earliestDateInUtc = now.minusMillis(110 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000); verifyManyLogs(56, 55, 110, result.data, result.getStatusMessage(), earliestDateInUtc); nextSearch = now.toEpochMilli() - 112 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000; action = getAction("searchTimeOffset", String.valueOf(nextSearch)); result = getShowPageResult(action); earliestDateInUtc = Instant.ofEpochMilli(nextSearch - 24 * 60 * 60 * 1000); verifyManyLogs(39, 111, 149, result.data, result.getStatusMessage(), earliestDateInUtc); action = getAction("filterQuery", "request:testdata1"); result = getShowPageResult(action); earliestDateInUtc = now.minusMillis(54 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000); verifyManyLogs(55, 0, 54, result.data, result.getStatusMessage(), earliestDateInUtc); nextSearch = now.toEpochMilli() - 56 * LOG_MESSAGE_INTERVAL_MANY_LOGS * 1000; action = getAction("filterQuery", "request:testdata1", "searchTimeOffset", String.valueOf(nextSearch)); result = getShowPageResult(action); earliestDateInUtc = Instant.ofEpochMilli(nextSearch - 24 * 60 * 60 * 1000); verifyManyLogs(95, 55, 60, result.data, result.getStatusMessage(), earliestDateInUtc); }