@SuppressWarnings("unchecked")
public void sampling() throws Exception {
String dir = getTestDir().getAbsolutePath();
String services = StringUtils.toString(Arrays.asList(InstrumentationService.class.getName(),
SchedulerService.class.getName()), ",");
XConfiguration conf = new XConfiguration();
conf.set("server.services", services);
Server server = new Server("server", dir, dir, dir, dir, conf);
server.init();
Instrumentation instrumentation = server.get(Instrumentation.class);
final AtomicInteger count = new AtomicInteger();