[CXF-5902] Initial test code, to be optimized later