private void assertAllProperties(final STSClientConfig config) {
   assertEquals(serviceName, config.getServiceName());
   assertEquals(portName, config.getPortName());
   assertEquals(endpointAddress, config.getEndPointAddress());
   assertEquals(username, config.getUsername());
   assertEquals(password, config.getPassword());
 }
  public void testBuildFromConfigPropertiesFileOverridePassword() {
    final Builder builder = new STSClientConfig.Builder("wstrust/sts-client.properties");
    assertAllProperties(builder.build());

    final String overriddenPassword = "******";
    builder.password(overriddenPassword);
    final STSClientConfig config = builder.build();
    assertEquals(overriddenPassword, config.getPassword());
  }