@Test
	public void testListNonExistingModule() throws Exception {
		mockMvc.perform(
				get("/runtime/modules?containerId=1&moduleId=random").accept(MediaType.APPLICATION_JSON)).andExpect(
				status().isNotFound()).andExpect(
				jsonPath("$[0].message",
						Matchers.is("The module with id 'random' doesn't exist in the container with id '1'")));
	}
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