@Test
public void MustInCorrectPrepareWhenKeysGetOrAddThrowException() throws ResolutionException {

    IObject query = mock(IObject.class);
    when(Keys.getOrAdd("db.collection.upsert")).thenThrow(new ResolutionException(""));
    try {
        testTask.prepare(query);
    } catch (TaskPrepareException e) {
        verifyStatic();
        Keys.getOrAdd("db.collection.upsert");
        return;
    }
    assertTrue(false);
}