@Test
public void testGetNodes() {

    processInstanceId = processService.startProcess(deploymentUnit.getIdentifier(), "org.jbpm.writedocument");
    assertNotNull(processInstanceId);
    
    Collection<ProcessNode> processNodes = processAdminService.getProcessNodes(processInstanceId);
    assertNotNull(processNodes);
    assertEquals(8, processNodes.size());
    
    Map<String, String> mappedNodes = processNodes.stream().collect(Collectors.toMap(ProcessNode::getNodeName, ProcessNode::getNodeType));
    assertEquals("StartNode", mappedNodes.get("Start"));
    assertEquals("HumanTaskNode", mappedNodes.get("Write a Document"));
    assertEquals("Split", mappedNodes.get("Review and Translate"));
    assertEquals("HumanTaskNode", mappedNodes.get("Translate Document"));
    assertEquals("HumanTaskNode", mappedNodes.get("Review Document"));
    assertEquals("Join", mappedNodes.get("Reviewed and Translated"));
    assertEquals("ActionNode", mappedNodes.get("Report"));
    assertEquals("EndNode", mappedNodes.get("End"));
}