Extent result = temporalReferenceSystem1.getDomainOfValidity();
ExtentImpl domainOfValidity = new ExtentImpl();
domainOfValidity.setDescription(new SimpleInternationalString("Western Europe"));
Calendar cal = Calendar.getInstance();
cal.set(0, 0, 0);
TemporalExtentImpl temporalExt = new TemporalExtentImpl(cal.getTime(), new Date());
Collection<TemporalExtent> collection = new ArrayList<TemporalExtent>();
collection.add(temporalExt);
domainOfValidity.setTemporalElements(collection);
((DefaultTemporalReferenceSystem) temporalReferenceSystem1).setDomainOfValidity(domainOfValidity);
assertFalse(temporalReferenceSystem1.getDomainOfValidity().equals(result));