@Test
public void ShouldCorrectPrepareObjectForDeleting() throws Exception {

    IObject query = mock(IObject.class);
    IObject doc = mock(IObject.class);
    when(collectionNameField.in(query)).thenReturn("collectionName");
    when(documentField.in(query)).thenReturn(doc);
    task.prepare(query);
    verify(isActiveField).out(query, false);
    verifyStatic();
    IOC.resolve(
        Keys.getOrAdd("db.collection.upsert"),
        connection,
        "collectionName",
        doc
    );
}