@Test
	public void testListModulesByContainer() throws Exception {
		mockMvc.perform(get("/runtime/modules?containerId=2").accept(MediaType.APPLICATION_JSON)).andExpect(
				status().isOk()).andExpect(
				jsonPath("$.content", Matchers.hasSize(1))).andExpect(
				jsonPath("$.content[*].name", contains("log.1"))).andExpect(
				jsonPath("$.content[*].containerId", contains("2"))).andExpect(
				jsonPath("$.content[*].moduleType", contains("sink"))).andExpect(
				jsonPath("$.content[*].unitName", contains("s2"))).andExpect(
				jsonPath("$.content[*].deploymentStatus", contains("deployed"))).andExpect(
				jsonPath("$.content[*].moduleOptions.entity2", contains("value2"))).andExpect(
				jsonPath("$.content[*].deploymentProperties.count", contains("2")));
	}
Tests REST compliance of module metadata endpoint.

@author Ilayaperumal Gopinathan
@author Gunnar Hillert
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/ModuleMetadataControllerIntegrationTests.java