Extract Method	public waitForState(nms Collection<MockNM>, containerId ContainerId, containerState RMContainerState, timeoutMillisecs int) : boolean extracted from public waitForState(nm MockNM, containerId ContainerId, containerState RMContainerState, timeoutMillisecs int) : boolean in class org.apache.hadoop.yarn.server.resourcemanager.MockRM