@Test
public void MustInCorrectPrepareWhenFieldInThrowInvlidArgumentException() throws ResolutionException, ReadValueException, InvalidArgumentException {

    IObject query = mock(IObject.class);
    when(collectionNameField.in(query)).thenThrow(new InvalidArgumentException(""));
    IKey upsertTaskKey = mock(IKey.class);
    when(Keys.getOrAdd("db.collection.upsert")).thenReturn(upsertTaskKey);
    try {
        testTask.prepare(query);
    } catch (TaskPrepareException e) {
        verifyStatic();
        Keys.getOrAdd("db.collection.upsert");
        verify(collectionNameField).in(query);
        return;
    }
    assertTrue(false);
}