hc.getHandler().remove(1);
PortComponentHandlerType h = hc.getHandler().get(0);
List<ParamValueType> params = h.getInitParam();
ParamValueType p = new ParamValueType();
org.apache.cxf.jaxws.javaee.CString pName = new org.apache.cxf.jaxws.javaee.CString();
pName.setValue("foo");
p.setParamName(pName);
org.apache.cxf.jaxws.javaee.XsdStringType pValue = new org.apache.cxf.jaxws.javaee.XsdStringType();
pValue.setValue("1");
p.setParamValue(pValue);
params.add(p);
p = new ParamValueType();
pName = new org.apache.cxf.jaxws.javaee.CString();
pName.setValue("bar");
p.setParamName(pName);
pValue = new org.apache.cxf.jaxws.javaee.XsdStringType();
pValue.setValue("2");
p.setParamValue(pValue);
params.add(p);
List<Handler> chain = builder.buildHandlerChainFromConfiguration(hc);
assertEquals(1, chain.size());
TestLogicalHandler tlh = (TestLogicalHandler)chain.get(0);