### Question:
DriftDefinition implements Serializable { public String getName() { return name; } 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 getName() { String name = "test"; Configuration config = new Configuration(); config.put(new PropertySimple("name", name)); DriftDefinition driftDef = new DriftDefinition(config); assertEquals(driftDef.getName(), name, "Failed to get drift definition name"); }