@Test
	public void basicRoundRobin() {
		Collection<Container> matched = containerMatcher.match(moduleDescriptor, deploymentProperties,
				containers);
		assertEquals(1, matched.size());
		assertSame(containers.get(0), matched.iterator().next());

		matched = containerMatcher.match(moduleDescriptor, deploymentProperties,
				containers);
		assertEquals(1, matched.size());
		assertSame(containers.get(1), matched.iterator().next());

		matched = containerMatcher.match(moduleDescriptor, deploymentProperties,
				containers);
		assertEquals(1, matched.size());
		assertSame(containers.get(2), matched.iterator().next());

		matched = containerMatcher.match(moduleDescriptor, deploymentProperties,
				containers);
		assertEquals(1, matched.size());
		assertSame(containers.get(0), matched.iterator().next());
	}
Tests for {@link ContainerMatcher}

@author David Turanski
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/server/admin/deployment/DefaultContainerMatcherTests.java