public String getStaticAssets(String pluginId) {
        return pluginRequestHelper.submitRequest(pluginId, REQUEST_GET_STATIC_ASSETS, new DefaultPluginInteractionCallback<>() {
            @Override
            public String onSuccess(String responseBody, Map<String, String> responseHeaders, String resolvedExtensionVersion) {
                return getMessageConverter(resolvedExtensionVersion).getStaticAssetsFromResponseBody(responseBody);
            }
        });
    }
@Test
    public void shouldErrorOutInAbsenceOfStaticAssets() {
        when(pluginManager.submitTo(eq(PLUGIN_ID), eq(ANALYTICS_EXTENSION), requestArgumentCaptor.capture())).thenReturn(new DefaultGoPluginApiResponse(SUCCESS_RESPONSE_CODE, "{}"));

        assertThatThrownBy(() -> analyticsExtension.getStaticAssets(PLUGIN_ID))
                .isInstanceOf(RuntimeException.class)
                .hasMessageContaining("No assets defined!");
    }