### Question:
DriftDefinition implements Serializable { public List<Filter> getExcludes() { return getFilters(DriftConfigurationDefinition.PROP_EXCLUDES); } protected  DriftDefinition();  DriftDefinition(Configuration c); int getId(); void setId(int id); Long getCtime(); String getName(); void setName(String name); String getDescription(); void setDescription(String description); boolean isEnabled(); void setEnabled(Boolean isEnabled); boolean isAttached(); void setAttached(Boolean attached); DriftHandlingMode getDriftHandlingMode(); void setDriftHandlingMode(DriftHandlingMode driftHandlingMode); long getInterval(); void setInterval(Long interval); boolean isPinned(); void setPinned(boolean isPinned); Configuration getConfiguration(); void setConfiguration(Configuration configuration); Resource getResource(); void setResource(Resource resource); DriftDefinitionTemplate getTemplate(); void setTemplate(DriftDefinitionTemplate template); DriftComplianceStatus getComplianceStatus(); void setComplianceStatus(DriftComplianceStatus complianceStatus); @Override String toString(); BaseDirectory getBasedir(); void setBasedir(BaseDirectory basedir); List<Filter> getIncludes(); List<Filter> getExcludes(); void setIncludes(List<Filter> includesFilters); void addInclude(Filter filter); void setExcludes(List<Filter> excludesFilters); void addExclude(Filter filter);  }### Answer:
@Test public void getExcludes() { String path1 = "lib"; String pattern1 = "*.jar"; String path2 = "conf"; String pattern2 = "*.xml"; Configuration config = new Configuration(); PropertyList excludes = new PropertyList("excludes"); excludes.add(newExclude(path1, pattern1)); excludes.add(newExclude(path2, pattern2)); config.put(excludes); DriftDefinition driftDef = new DriftDefinition(config); List<Filter> actual = driftDef.getExcludes(); List<Filter> expected = asList(new Filter(path1, pattern1), new Filter(path2, pattern2)); assertEquals(actual.size(), 2, "Expected to find two excludes filters"); assertEquals(actual, expected, "Failed to get drift definition excludes filters"); }