@Test
public void getDynamicTaskNameNotAvailable() {

    Map<String, Object> taskInput = new HashMap<>();
    expectedException.expect(TerminateWorkflowException.class);
    expectedException.expectMessage(String.format("Cannot map a dynamic task based on the parameter and input. " +
            "Parameter= %s, input= %s", "dynamicTaskName", taskInput));
    dynamicTaskMapper.getDynamicTaskName(taskInput, "dynamicTaskName");
}