@Override
 protected Builder createBuilder() {
   Builder builder = super.createBuilder();
   builder.wsaIssuer((String) options.get(WSA_ISSUER));
   builder.wspAppliesTo((String) options.get(WSP_APPIESTO));
   return builder;
 }
  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());
  }
 public void testBuild() {
   final Builder builder = new STSClientConfig.Builder();
   final STSClientConfig config =
       builder
           .serviceName(serviceName)
           .portName(portName)
           .endpointAddress(endpointAddress)
           .username(username)
           .password(password)
           .build();
   assertAllProperties(config);
 }
 public void testBuildFromConfigPropertiesFile() {
   final Builder builder = new STSClientConfig.Builder("wstrust/sts-client.properties");
   assertAllProperties(builder.build());
 }