CredentialsConfig extends SimpleComponent<CredentialsConfig> implements PasswordsConfig<CredentialsConfig> { @Override public CredentialsConfig withoutPasswords() { return toBuilder().password("").build(); }  @Override CredentialsConfig withoutPasswords(); @Override CredentialsConfig withEncryptedPasswords(final TextEncryptor encryptor); @Override CredentialsConfig withDecryptedPasswords(final TextEncryptor encryptor); @Override CredentialsConfig merge(final CredentialsConfig config);  }
@Test public void testWithoutPasswords() { Assert.assertEquals(new CredentialsConfig("user", ""), decryptedValue.withoutPasswords()); }