void () { List<String> originalArgs = ImmutableList.of( "--configure-on-demand", "-Pandroid.injected.invoked.from.ide=true", "-Pandroid.injected.signing.store.password=asdfghjkl;", "-Pandroid.injected.signing.key.alias=testKey", "-Pandroid.injected.signing.key.password=blabla", "/tmp/asLocalRepo1004.gradle" ); List<String> obfuscatedArgs = obfuscatePasswordParameters(originalArgs); List<String> expectedArgs = ImmutableList.of( "--configure-on-demand", "-Pandroid.injected.invoked.from.ide=true", "-Pandroid.injected.signing.store.password=*********", "-Pandroid.injected.signing.key.alias=testKey", "-Pandroid.injected.signing.key.password=*********", "/tmp/asLocalRepo1004.gradle" ); assertEquals(obfuscatedArgs, expectedArgs); }