ExcludeFilter extends Filter { @Override public SofaResponse invoke(FilterInvoker invoker, SofaRequest request) throws SofaRpcException { throw new UnsupportedOperationException(); } ExcludeFilter(String excludeName); String getExcludeName(); @Override SofaResponse invoke(FilterInvoker invoker, SofaRequest request);  }
@Test public void invoke() throws Exception { boolean error = false; try { new ExcludeFilter("*").invoke(null, null); } catch (Exception e) { error = e instanceof UnsupportedOperationException; } Assert.assertTrue(error); }