Path with empty spaces does not work in resources of AddModule command on Windows. When path with directory "directory with spaces" is used then it fails on Windows due to exception like:
org.jboss.as.cli.CommandLineException: Failed to locate C:\Users\HUDSON~1.PJE\AppData\Local\Temp\junit4842574964536680649\directory\ with\ spaces\testJar1.jar
(because \ is separator on Windows).
As part of this issue also AddRemoveModuleTest should be fixed for Windows. It currently fails due to this issue as well as due to using resource delimiter : (which breaks Windows paths like C:\...).