@Inject
private Instance<ServiceLoader> serviceLoader;
public void injectWarpRuntime(@Observes BeforeClass event) {
if (WarpCommons.isWarpTest(event.getTestClass().getJavaClass())) {
DefaultWarpRuntime runtime = new DefaultWarpRuntime();
runtime.setWarpActivityBuilder(serviceLoader.get().onlyOne(WarpRequestSpecifier.class));
runtime.setHttpFilterBuilder(serviceLoader.get().onlyOne(HttpFilterBuilder.class));
WarpRuntime.setInstance(runtime);
}
}