@Test
public void testNegativeBeforeExecution() throws TaskException {

    doThrow(new TaskExecutionException("Mock exception")).when(task).before(any(TaskParameters.class),
            any(TaskExecutionContext.class));
    SingleTaskOutput output = mock(SingleTaskOutput.class);
    parameters.setOutput(output);
    TestUtils.setProperty(victim, "context", context);
    victim.execute(parameters);
    verify(task).before(eq(parameters), any());
    verify(task).after();
    verify(task, never()).execute(parameters);
}