### Question:
TcaDataCollectionConfig implements Serializable, Comparable<TcaDataCollectionConfig> { @Override public boolean equals(Object obj) { if (obj instanceof TcaDataCollectionConfig) { TcaDataCollectionConfig other = (TcaDataCollectionConfig) obj; return new EqualsBuilder() .append(getRrdRepository(), other.getRrdRepository()) .append(getTcaDataCollections().toArray(OF_DATA_COLLECTIONS), other.getTcaDataCollections().toArray(OF_DATA_COLLECTIONS)) .isEquals(); } return false; } TcaDataCollectionConfig(); @XmlTransient String getRrdRepository(); void setRrdRepository(String rrdRepository); @XmlTransient List<TcaDataCollection> getTcaDataCollections(); void setTcaDataCollections(List<TcaDataCollection> tcaDataCollections); void addDataCollection(TcaDataCollection dataCollection); void removeDataCollection(TcaDataCollection dataCollection); void removeDataCollectionByName(String name); TcaDataCollection getDataCollectionByName(String name); RrdRepository buildRrdRepository(String collectionName); int compareTo(TcaDataCollectionConfig obj); @Override boolean equals(Object obj); static final String TCA_DATACOLLECTION_CONFIG_FILE; }### Answer:
@Test public void readXML() throws Exception { File xmlCollectionConfig = getSourceFile(); assertTrue(TcaDataCollectionConfig.TCA_DATACOLLECTION_CONFIG_FILE + " is readable", xmlCollectionConfig.canRead()); InputStream reader = new FileInputStream(xmlCollectionConfig); unmarshaller.setSchema(null); TcaDataCollectionConfig exampleXmldcc = (TcaDataCollectionConfig)unmarshaller.unmarshal(reader); assertTrue("Compare TCA Data Collection Config objects.", tcadcc.equals(exampleXmldcc)); reader.close(); }