@Test(expected = PluginException.class)
public void ShouldThrowException_When_InternalExceptionIsThrown() throws Exception {

    whenNew(BootstrapItem.class).withArguments("PasswordEncoderPlugin").thenThrow(new InvalidArgumentException(""));
    plugin.load();
}