@Test
public void getExceptionWhenNoSubWorkflowParamsPassed() {

    WorkflowTask workflowTask = new WorkflowTask();
    workflowTask.setName("FooWorkFLow");
    expectedException.expect(TerminateWorkflowException.class);
    expectedException.expectMessage(String.format("Task %s is defined as sub-workflow and is missing subWorkflowParams. " +
            "Please check the blueprint", workflowTask.getName()));
    subWorkflowTaskMapper.getSubWorkflowParams(workflowTask);
}