### Question:
AdapterDescription extends NamedStreamPipesEntity { public List getSchemaRules() { List tmp = new ArrayList<>(); rules.forEach(rule -> { if(rule instanceof SchemaTransformationRuleDescription) tmp.add(rule); }); return tmp; } AdapterDescription();  AdapterDescription(String uri, String name, String description);  AdapterDescription(AdapterDescription other); String getId(); void setId(String id); String getRev(); void setRev(String rev); String getAdapterId(); void setAdapterId(String adapterId); String getUserName(); void setUserName(String userName); List<TransformationRuleDescription> getRules(); void setRules(List<TransformationRuleDescription> rules); EventGrounding getEventGrounding(); void setEventGrounding(EventGrounding eventGrounding); List<StaticProperty> getConfig(); void addConfig(StaticProperty sp); void setConfig(List<StaticProperty> config); String getAdapterType(); void setAdapterType(String adapterType); List getValueRules(); List getStreamRules(); List getSchemaRules(); String getIcon(); void setIcon(String icon); List<String> getCategory(); void setCategory(List<String> category); @Override String toString();  }### Answer:
@Test public void getSchemaRules() { assertEquals(7, adapterDescription.getSchemaRules().size()); }