@Test
	public void testMaskStreamDefinitionWithMultiplePasswordParametersAndMixedCase() {
		String maskedPassword = PasswordUtils.maskPasswordsInDefinition(
				"mystream -- password=12 --PASSword=  1234 --PASSWORD=  1234");
		assertEquals("mystream -- password=** --PASSword=  **** --PASSWORD=  ****", maskedPassword);
	}
The password parameter can be upper-case, lower-case or mixed-case.
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/PasswordUtilsTests.java