@Test
public void testExpandVolumeName() {

	String name = "roboconf-" + TPL_VOLUME_APP + "-" + TPL_VOLUME_NAME;
	Assert.assertEquals("roboconf-app-inst", expandVolumeName(name, "app", "inst"));
	name = "cache-" + TPL_VOLUME_NAME;
	Assert.assertEquals("cache-inst4", expandVolumeName(name, "app2", "inst4"));
	name = "pre-" + TPL_VOLUME_APP + "-post";
	Assert.assertEquals("pre-app2-post", expandVolumeName(name, "app2", "inst"));
	name = "pre-" + TPL_VOLUME_APP + "-post 2";
	Assert.assertEquals("pre-app-51--post-2", expandVolumeName(name, "app 51 ", "vm 1"));
}