System.setProperty(UserMonitorThread.SCAN_TIMEOUT_PROPERTY, ""); // seconds
myUserMonitorThread.triggerFindNow();
new WaitFor() { @Override
protected boolean condition() { return started[0]; } };
myUserMonitorClientMock.expects(once()).method("setOnlineUsers").with(eq(Collections.emptySet()));
new WaitFor(myUserMonitorThread.getWaitUserResponsesTimeout() + 100) {
@Override
protected boolean condition() {
return !myUserMonitorThread.isFinding();
}
};