如何开始编写以下同步java方法的测试用例。感谢。
public synchronized boolean isUser(String username) {
if (rememberMeMap.containsKey(username)) {
long timestamp = rememberMeMap.get(username);
long curtime = Calendar.getInstance().getTimeInMillis();
if (curtime - timestamp > 1200000) {
log.warn("RememberMe");
return false;
}
return true;
}
return false;
}
`