[WFLY-1879] Better exception handling when File.listFiles() fails
WFLY-981 : Adding test to be able to close the bug.
@RunAs and @RunAsPrincipal are taken into account on a @Startup @Singleton.
[WFLY-456] Add missing test