@Test
  public void startProcessTest() {
    StatefulKnowledgeSession ksession = createProcessSession();

    ProcessInstance processInstance = ksession.startProcess("Minimal");

    Assert.assertNotNull(processInstance);

    Assert.assertEquals("Minimal", processInstance.getProcessId());
  }
  @Test
  public void startProcessWithParametersTest() {
    StatefulKnowledgeSession ksession = createProcessSession();
    Map<String, Object> parameters = new HashMap<String, Object>();
    parameters.put("long", 1L);
    ProcessInstance processInstance = ksession.startProcess("Minimal", parameters);

    Assert.assertNotNull(processInstance);

    Assert.assertEquals("Minimal", processInstance.getProcessId());
  }
  @Test
  public void startUnexistingProcessTest() {
    StatefulKnowledgeSession ksession = createProcessSession();

    try {
      ProcessInstance processInstance = ksession.startProcess("Minimal NO EXISTS");
      Assert.fail("Exception expected");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }