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

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