Trying to use JUNIT for camunda-bpm and assertThat(task(instance)) always returns null due to which not able to test the Happy path. Can anyone let me know why does it always return null.package is of org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests.
@Test
@Deployment(resources= {"firstone.bpmn","secondone.dmn"})
public void testFlowOne() throws JsonProcessingException, InterruptedException {
//Creating variables map
ProcessInstance instance=runtimeService().startProcessInstanceByKey("ChangeCspWorkFlow",map);
assertThat(task(instance)).isNotNull(); // Assertion fails as always it returns null
complete(task(instance),withVariables("Network","Success"));
}