@Test
public void testInProgress() {

    loopTask.setStatus(Task.Status.IN_PROGRESS);
    task1.setStatus(Task.Status.IN_PROGRESS);
    Mockito.doReturn(Arrays.asList(task1, task2, loopTask)).when(workflow).getTasks();
    boolean success = doWhile.execute(workflow, loopTask, provider);
    Assert.assertFalse(success);
    Assert.assertTrue(loopTask.getStatus() == Task.Status.IN_PROGRESS);
}