@Test
public void scheduleRunnable() throws InterruptedException {

    final Map<String, Integer> taskMap = new HashMap<String, Integer>();
    taskMap.put("key", 1);
    SofaTracerRunnable sofaTracerRunnable = new SofaTracerRunnable(new Runnable() {
        @Override
        public void run() {
            taskMap.put("key", taskMap.get("key") + 1);
        }
    });
    tracerScheduleExecutorService.schedule(sofaTracerRunnable, 1000, TIME_UNIT);
    Thread.sleep(1100);
    Integer result = taskMap.get("key");
    Assert.assertTrue(result == 2);
}