### Question:
LiteFnQueryHttpFilter implements Filter { public static Set<String> getFilterPaths() { return filterPaths; }  static Set<String> getFilterPaths(); @Override void init(FilterConfig filterConfig); @Override void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
                       FilterChain filterChain); @Override void destroy();  }### Answer:
@Test public void testHttpFilter() { Set<String> urlPathSets = LiteFnQueryHttpFilter.getFilterPaths(); urlPathSets.forEach(urlPath -> { if (urlPath.contains("/walletsolidity")) { fullHttpPort = Args.getInstance().getSolidityHttpPort(); } else if (urlPath.contains("/walletpbft")) { fullHttpPort = Args.getInstance().getPBFTHttpPort(); } else { fullHttpPort = Args.getInstance().getFullNodeHttpPort(); } String url = String.format("http: Args.getInstance().setLiteFullNode(true); Args.getInstance().setOpenHistoryQueryWhenLiteFN(false); String response = sendGetRequest(url); Assert.assertEquals("this API is closed because this node is a lite fullnode", response); Args.getInstance().setLiteFullNode(false); Args.getInstance().setOpenHistoryQueryWhenLiteFN(true); response = sendGetRequest(url); Assert.assertNotEquals("this API is closed because this node is a lite fullnode", response); Args.getInstance().setLiteFullNode(false); Args.getInstance().setOpenHistoryQueryWhenLiteFN(true); response = sendGetRequest(url); Assert.assertNotEquals("this API is closed because this node is a lite fullnode", response); }); }