@Deployment
public void testDeleteHistoricProcessInstance() {
// Start process-instance with some variables set
Map<String, Object> vars = new HashMap<String, Object>();
vars.put("processVar", 123L);
vars.put("anotherProcessVar", new DummySerializable());
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("HistoricTaskInstanceTest", vars);
assertNotNull(processInstance);
// Set 2 task properties