}
// if first selected can't move up and if last selected can't move down
if ((ix == 0 && offset == -1) || (ix == assertions.size() - 1 && offset == 1)) {
return assertion;
}
TestAssertionConfig conf = assertion.getConfig();
XmlObject newXmlObject = conf.copy();
TestAssertionConfig newConf = TestAssertionConfig.Factory.newInstance();
newConf.set(newXmlObject);
WsdlMessageAssertion newAssertion = TestAssertionRegistry.getInstance().buildAssertion(newConf, assertable);
assertion.removePropertyChangeListener(this);
assertions.remove(ix);