public class SequenceManagerTest extends TestCase {
protected SequenceAbsractPortType sequenceManager;
protected boolean specifyExpires = false;
public void testCreateAndTerminateSequence() throws Exception {
CreateSequenceType createArguments = new CreateSequenceType();
EndpointReferenceType reference = new EndpointReferenceType();
reference.setAddress(new AttributedURI());
reference.getAddress().setValue("http://localhost/test/" + getClass().getName() + "/" + getName());
createArguments.setAcksTo(reference);
if (specifyExpires) {
Expires expires = new Expires();
createArguments.setExpires(expires);
}
CreateSequenceResponseType response = sequenceManager.createSequence(createArguments);
Identifier identifier = response.getIdentifier();
String value = identifier.getValue();