@Test
	public void testFullPath() {
		String streamName = "my-stream";
		String moduleType = ModuleType.source.toString();
		String moduleLabel = "my-label";
		String moduleSequence = "0";
		String container = UUID.randomUUID().toString();
		String path = Paths.build(Paths.STREAM_DEPLOYMENTS, streamName, Paths.MODULES,
				String.format("%s.%s.%s.%s", moduleType, moduleLabel, moduleSequence, container));

		StreamDeploymentsPath streamDeploymentsPath = new StreamDeploymentsPath(path);

		assertEquals(streamName, streamDeploymentsPath.getStreamName());
		assertEquals(moduleType, streamDeploymentsPath.getModuleType());
		assertEquals(moduleLabel, streamDeploymentsPath.getModuleLabel());
		assertEquals(moduleSequence, streamDeploymentsPath.getModuleSequenceAsString());
		assertEquals(container, streamDeploymentsPath.getContainer());

		StreamDeploymentsPath streamDeploymentsPathEmptyCtor = new StreamDeploymentsPath()
				.setStreamName(streamName)
				.setModuleType(moduleType)
				.setModuleLabel(moduleLabel)
				.setModuleSequence(moduleSequence)
				.setContainer(container);

		assertEquals(path, streamDeploymentsPathEmptyCtor.build());
	}
Test the usage of {@link StreamDeploymentsPath} when
providing the entire path. Assert that the path is parsed
and generated as expected.
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/core/StreamDeploymentsPathTest.java