JAXBElement<?> el = (JAXBElement<?>)um.unmarshal(inStream);
EndpointReferenceType ref = (EndpointReferenceType)el.getValue();
Bus bus = BusFactory.getThreadDefaultBus();
STSClient client = new STSClient(bus);
client.configureViaEPR(ref, false);
assertEquals("http://localhost:8080/jaxws-samples-wsse-policy-trust-sts/SecurityTokenService?wsdl",
client.getWsdlLocation());
assertEquals(new QName("http://docs.oasis-open.org/ws-sx/ws-trust/200512/", "SecurityTokenService"),
client.getServiceQName());