@Test
	public void testListContainers() throws Exception {
		mockMvc.perform(get("/runtime/containers").accept(MediaType.APPLICATION_JSON)).andExpect(status().isOk()).andExpect(
				jsonPath("$.content", Matchers.hasSize(2))).andExpect(
				jsonPath("$.content[*].attributes.id", contains("1", "2"))).andExpect(
				jsonPath("$.content[*].attributes.pid", contains("1234", "2345"))).andExpect(
				jsonPath("$.content[*].attributes.host", contains("host1", "host2"))).andExpect(
				jsonPath("$.content[*].attributes.ip", contains("127.0.0.1", "192.168.2.1")));
	}
Tests REST compliance of containers endpoint.

@author Ilayaperumal Gopinathan
@author Mark Fisher
@author David Turanski
@author Gunnar Hillert
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/ContainersControllerIntegrationTests.java