@Test(expected = UpsertCacheItemException.class)
public void ShouldThrowUpsertItemException_When_NestedErrorIsOccurred() throws Exception {

    IObject query = mock(IObject.class);
    when(IOC.resolve(any(), any(), any(), any())).thenThrow(new ResolutionException(""));
    collection.upsert(query);
}