[WFLY-2542] Test case to java and groovy class