### Question:
ConnectionServiceHelper { public static String encodePassword( String password ) { StringBuffer buffer; if ( password != null && password.length() > 0 ) { buffer = new StringBuffer( password.length() ); for ( int i = 0; i < password.length(); i++ ) { buffer.append( PASSWORD_REPLACE_CHAR ); } } else { buffer = new StringBuffer(); } return buffer.toString(); }  static String getConnectionPassword( String connectionName, String password ); static String encodePassword( String password );  }### Answer:
@Test public void testEncodePassword() { testEncodePassword( "password", "********" ); }