test for https://issues.apache.org/jira/browse/CXF-5776