### Question:
Feature { public Set<String> getViews() { return views; } private  Feature(String name);  Feature(Element feature);  Feature(String name, Multimap<String, String> params,
      boolean required, Set<String> views); String getName(); Multimap<String, String> getParams(); String getParam(String key); Collection<String> getParamCollection(String key); boolean getRequired(); Set<String> getViews(); @Override String toString(); static final Feature CORE_FEATURE; static final Feature SECURITY_TOKEN_FEATURE; }### Answer:
@Test public void testViews() throws Exception { String xml = "<Require feature=\"foo\" views=\"view1\">" + "</Require>"; Feature feature = new Feature(XmlUtil.parse(xml)); Set<String> views = feature.getViews(); assertTrue(views.size() == 1); assertTrue(views.contains("view1")); xml = "<Require feature=\"foo\" views=\"view1, view2\">" + "</Require>"; feature = new Feature(XmlUtil.parse(xml)); views = feature.getViews(); assertTrue(views.size() == 2); assertTrue(views.contains("view1")); assertTrue(views.contains("view2")); xml = "<Require feature=\"foo\">" + "</Require>"; feature = new Feature(XmlUtil.parse(xml)); views = feature.getViews(); assertTrue(views != null); assertTrue(views.size() == 0); }