@Test
	public void testListModules() throws Exception {
		mockMvc.perform(get("/runtime/modules").accept(MediaType.APPLICATION_JSON)).andExpect(status().isOk()).andExpect(
				jsonPath("$.content", Matchers.hasSize(3))).andExpect(
				jsonPath("$.content[*].moduleId", contains("s1.source.http.0", "s2.sink.log.1", "j3.job.myjob.0"))).andExpect(
				jsonPath("$.content[*].name", contains("http.0", "log.1", "myjob.0"))).andExpect(
				jsonPath("$.content[*].unitName", contains("s1", "s2", "j3"))).andExpect(
				jsonPath("$.content[*].moduleType", contains("source", "sink", "job"))).andExpect(
				jsonPath("$.content[*].containerId", contains("1", "2", "3"))).andExpect(
				jsonPath("$.content[*].moduleOptions", Matchers.hasSize(3))).andExpect(
				jsonPath("$.content[*].deploymentProperties", Matchers.hasSize(3)));
	}
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