public void isReady() {
		AvailableSocketPorts.ensureReady(this.getClass().getName(), host, port, 2000);
	}
Checks to see if the default mongo port 2000 is available on the configured host waiting up to 2 seconds

@throws IllegalStateException if can not connect in the specified timeout.
spring-xd-test-fixtures/src/main/java/org/springframework/xd/test/fixtures/HdfsMongoDbJob.java