@Override
    public void reportErrorAndInvalidate(String bundleSymbolicName, List<String> messages) {
        try {
            pluginRegistry.markPluginInvalid(bundleSymbolicName, messages);
        } catch (Exception e) {
            LOGGER.warn("[Plugin Health Service] Plugin with id '{}' tried to report health with message '{}' but Go is unaware of this plugin.", bundleSymbolicName, messages, e);
        }
    }
@Test
    void shouldNotThrowExceptionWhenPluginIsNotFound() {
        String bundleSymbolicName = "invalid-plugin";
        String message = "some msg";
        List<String> reasons = List.of(message);
        doThrow(new RuntimeException()).when(pluginRegistry).markPluginInvalid(bundleSymbolicName, reasons);

        assertThatCode(() -> serviceDefault.reportErrorAndInvalidate(bundleSymbolicName, reasons))
                .doesNotThrowAnyException();
    }