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

    IObject startQuery = mock(IObject.class);
    when(keyNameField.in(startQuery)).thenThrow(new ReadValueException());
    testTask.prepare(startQuery);
}