[WFLY-1759] Adding a testcase