public void testPasswordService() {
String password = "password"; //$NON-NLS-1$
IPasswordService passwordService = new Base64PasswordService();
String encryptedPassword = null;
try {
encryptedPassword = passwordService.encrypt( password );
String decryptedPassword = passwordService.decrypt( encryptedPassword );
assertEquals( password, decryptedPassword );
} catch ( PasswordServiceException pse ) {
fail( "should not have thrown the exception" ); //$NON-NLS-1$
pse.printStackTrace();