@Test
public void testGetPassword() throws Exception {

  Configuration conf = provisionCredentialsForSSL();
  // use WebAppUtils as would be used by loadSslConfiguration
  Assert.assertEquals("keypass",
      WebAppUtils.getPassword(conf, WebAppUtils.WEB_APP_KEY_PASSWORD_KEY));
  Assert.assertEquals("storepass",
      WebAppUtils.getPassword(conf, WebAppUtils.WEB_APP_KEYSTORE_PASSWORD_KEY));
  Assert.assertEquals("trustpass",
      WebAppUtils.getPassword(conf, WebAppUtils.WEB_APP_TRUSTSTORE_PASSWORD_KEY));
  // let's make sure that a password that doesn't exist returns null
  Assert.assertEquals(null, WebAppUtils.getPassword(conf,"invalid-alias"));
}