@Test
	public void testListModulesByJobName() throws Exception {
		mockMvc.perform(get("/runtime/modules?jobname=j3").accept(MediaType.APPLICATION_JSON)).andExpect(
				status().isOk()).andExpect(
				jsonPath("$", Matchers.hasSize(1))).andExpect(
				jsonPath("$[*].moduleId", contains("j3.job.myjob.0"))).andExpect(
				jsonPath("$[*].name", contains("myjob.0"))).andExpect(
				jsonPath("$[*].containerId", contains("3"))).andExpect(
				jsonPath("$[*].moduleType", contains("job"))).andExpect(
				jsonPath("$[*].moduleOptions.entity3", contains("value3"))).andExpect(
				jsonPath("$[*].deploymentProperties.criteria", contains("groups.contains('hdfs')")));
	}
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