[WFLY-2451] Adding unit test