public void testEvent() {
    AppUtil appUtil = new AppUtil();
    AI a = (AI) appUtil.getService("producer");
    TestEvent te = a.ma();
    long start = System.currentTimeMillis();
    while (te.getResult() != 100) {}
    long stop = System.currentTimeMillis();

    Assert.assertEquals(te.getResult(), 100);
    System.out.print("ok " + "  " + (stop - start) + "\n");
  }
  public void testComponentsEvent() {

    AI a = (AI) appUtil.getService("producer");
    a.ma();
  }