### Question:
ComponentManagerService { public void undeploy(final String pluginGAV) { if (pluginGAV == null || pluginGAV.isEmpty()) { throw new IllegalArgumentException("plugin maven GAV are required to undeploy a plugin"); } String pluginID = instance .find(c -> pluginGAV.equals(c.get(ComponentManager.OriginalId.class).getValue()) ? Stream.of(c.getId()) : empty()) .findFirst() .orElseThrow(() -> new IllegalArgumentException("No plugin found using maven GAV: " + pluginGAV)); instance.removePlugin(pluginID); lastUpdated = new Date(); }  void startupLoad(@Observes @Initialized(ApplicationScoped.class) final Object start); String deploy(final String pluginGAV); void undeploy(final String pluginGAV); Date findLastUpdated(); @Produces ComponentManager manager();  }### Answer:
@Test void undeployNonExistingPlugin() { final String gav = "org.talend:non-existing-component:jar:0.0.0:compile"; try { componentManagerService.undeploy(gav); } catch (final RuntimeException re) { assertTrue(re.getMessage().contains("No plugin found using maven GAV: " + gav)); } }