[KARAF-2558] Fix unit tests on Windows platform