@Test(timeout=10000)
public void testReassignNotStartedInvalidOrgEntities() throws Exception {

    processInstanceId = processService.startProcess(deploymentUnit.getIdentifier(), "org.jbpm.writedocument");
    Assertions.assertThat(processInstanceId).isNotNull();
    List<TaskSummary> tasks = runtimeDataService.getTasksAssignedAsPotentialOwner("salaboy", new QueryFilter());
    Assertions.assertThat(tasks).hasSize(1);
    TaskSummary task = tasks.get(0);
    Assertions.assertThatThrownBy(() -> {
        userTaskAdminService.reassignWhenNotStarted(task.getId(),
                                                    "2s",
                                                    null);
    })
            .hasMessage("Invalid org entity");
}