FilterDefinition { public void setFilter(Filter filter) { _filter = filter; }  void addDispatcher(String dispatcher); void addServletName(String servletName); void addURLPattern(String urlPattern); List<String> getDispatchers(); Filter getFilter(); Map<String, String> getInitParameters(); String getName(); int getPriority(); List<String> getServletNames(); List<String> getURLPatterns(); boolean isAsyncSupported(); void setAsyncSupported(boolean asyncSupported); void setDispatchers(List<String> dispatchers); void setFilter(Filter filter); void setInitParameter(String key, String value); void setInitParameters(Map<String, String> initParameters); void setName(String name); void setPriority(int priority); void setServletNames(List<String> servletNames); void setURLPatterns(List<String> urlPatterns);  }
@Test public void testSetFilter() { _filterDefinition.setFilter(_filter); Assert.assertEquals(_filter, _filterDefinition.getFilter()); }