@Test(expected = GetCacheItemException.class)
public void ShouldThrowGetItemException_When_NestedTaskIsNull() throws Exception {

    when(IOC.resolve(any(), any(), any(), any(), any(), any())).thenThrow(new ResolutionException(""));
    collection.getItems("key");
}