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

    IObject query = mock(IObject.class);
    IObject queryForNestedTask  = mock(IObject.class);
    IObject filterObject = mock(IObject.class);
    IKey iObjectKey = mock(IKey.class);
    when(Keys.getOrAdd("info.smart_tools.smartactors.iobject.iobject.IObject")).thenReturn(iObjectKey);
    when(IOC.resolve(iObjectKey)).thenReturn(queryForNestedTask).thenReturn(filterObject);
    when(tokenField.in(query)).thenThrow(new ReadValueException());
    try {
        testTask.prepare(query);
    } catch (TaskPrepareException e) {
        verifyStatic(times(2));
        Keys.getOrAdd("info.smart_tools.smartactors.iobject.iobject.IObject");
        verifyStatic(times(2));
        IOC.resolve(iObjectKey);
        verify(tokenField).in(query);
        return;
    }
    assertTrue(false);
}