public void test_scenario_error() throws Exception {
    helper.setRequest(getRequestListForTest());
    helper.setResult(getRequestResultError());
    helper.activate();

    RequestSender sender = new RequestSender();
    ResultManager rm = sender.send(helper.getRequest());

    helper.verify();
    assertTrue(rm.hasError());
  }
  public void test_scenario_ok() throws Exception {
    helper.setRequest(getRequestListForTest());
    helper.setResult(getRequestResult());
    helper.activate();

    RequestSender sender = new RequestSender();
    ResultManager rm = sender.send(getRequestListForTest());

    helper.verify();
    Result result = rm.getResult(helper.getRequestId(0));
    assertNotNull(result);
    assertEquals("pimsCode", result.getPrimaryKey(0));
  }