MonitoringFilter implements Filter { public static void unregisterApplicationNodeInCollectServer() throws IOException { if (unregisterApplicationNodeInCollectServerUrl != null) { new LabradorRetriever(unregisterApplicationNodeInCollectServerUrl).post(null); LOG.info("application node removed from the collect server"); } } MonitoringFilter(); String getApplicationType(); void setApplicationType(final String applicationType); @Override void init(FilterConfig config); @Override void destroy(); @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); static void registerApplicationNodeInCollectServer(String applicationName,
			URL collectServerUrl, URL applicationNodeUrl); static void unregisterApplicationNodeInCollectServer();  }
@Test public void testUnregisterApplicationNodeInCollectServer() throws IOException { MonitoringFilter.unregisterApplicationNodeInCollectServer(); }