// now we need to make the file valid....
config.getRemoteProxySettings().getHttpProxySettings().setProxyPort(1234);
// save it
source.storeConfiguration();
XStream xs = new XStream();
xs.processAnnotations(new Class[] { Xpp3Dom.class });
Assert.assertTrue("Configuration is corroupt, passwords are encrypted (in memory). ",
xs.toXML(config).contains(password));