@Test
	public void testMaskPropertiesIfNecessary() {
		final Properties properties = new Properties();
		properties.setProperty("nothingtomask", "1234");
		properties.setProperty("mypassword", "1234");
		properties.setProperty("passwdisMINE", "1234");

		PasswordUtils.maskPropertiesIfNecessary(properties);

		assertEquals("1234", properties.getProperty("nothingtomask"));
		assertEquals("****", properties.getProperty("mypassword"));
		assertEquals("****", properties.getProperty("passwdisMINE"));
	}
A basic stream definition parameter (parameter in middle of stream) called "password" with value wrapped in quotes should have its value masked
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/PasswordUtilsTests.java