### Question:
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override @XmlElement(name = "begin", required = true) public Instant getBeginning() { return begining; } private  DefaultPeriod();  DefaultPeriod(final Map<String , ?> properties, final Instant begining, final Instant ending); private  DefaultPeriod(final Period object); static DefaultPeriod castOrCopy(final Period object); @Override @XmlElement(name = "begin", required = true) Instant getBeginning(); void setBegining(final Instant begining); @Override @XmlElement(name = "end", required = true) Instant getEnding(); void setEnding(final Instant ending); @Override boolean equals(final Object object, ComparisonMode comp); @Override String toString();  }### Answer:
@Test public void testGetBeginning() { Instant result = period1.getBeginning(); assertFalse(period2.getBeginning().equals(result)); }