@Test(expected = Task.InvalidTaskException.class)
public void testValidateParametersDuplicate() throws Exception {

    Task invalidTask = new OrderedTask("id", stepOne, stepTwo, stepOneDupe);
    invalidTask.validateParameters();
}