@Test(expected = TaskPrepareException.class)
public void ShouldThrowException_When_ResolutionExceptionIsThrown() throws Exception {

    IObject rawQuery = mock(IObject.class);
    when(startDateTimeField.in(rawQuery)).thenThrow(ChangeValueException.class);
    task.prepare(rawQuery);
}