MODE-2029 Added test case to verify the behavior reported in the issue.

The test case validates that the reported issue has been fixed as part of https://issues.jboss.org/browse/MODE-2030