@Test(expected = ActionExecuteException.class)
public void ShouldThrowRuntimeException_When_LambdaThrowsException() throws Exception {

    when(Keys.getOrAdd(CollectionName.class.getCanonicalName())).thenThrow(new ResolutionException(""));
    BootstrapItem bootstrapItem = mock(BootstrapItem.class);
    whenNew(BootstrapItem.class).withArguments("CollectionNamePlugin").thenReturn(bootstrapItem);
    when(bootstrapItem.after(anyString())).thenReturn(bootstrapItem);
    when(bootstrapItem.before(anyString())).thenReturn(bootstrapItem);
    HashMap<String, CollectionName> collectionMap = mock(HashMap.class);
    whenNew(HashMap.class).withNoArguments().thenReturn(collectionMap);
    plugin.load();
    verifyNew(BootstrapItem.class).withArguments("CollectionNamePlugin");
    ArgumentCaptor<IPoorAction> actionArgumentCaptor = ArgumentCaptor.forClass(IPoorAction.class);
    verify(bootstrapItem).process(actionArgumentCaptor.capture());
    actionArgumentCaptor.getValue().execute();
}