String archiveName = simpleName.substring(0, 1).toLowerCase() + simpleName.substring(1);
JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, "scopeNotStartedTest.jar")
.addPackage(CustomSchedulerWarFileTest.class.getPackage().getName())
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsResource(new StringAsset(MockedScheduler.class.getName()),
"META-INF/services/" + Scheduler.class.getName())
.addAsResource(new StringAsset(CustomDeactivatedConfigSource.class.getName()),
"META-INF/services/" + ConfigSource.class.getName());
return ShrinkWrap.create(WebArchive.class, archiveName + ".war")
.addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndSchedulerArchive())
.addAsLibraries(testJar)