@Test
public void readFullExample()
                        throws Exception {

    final GMLStreamReader reader = getGmlStreamReader( "time_period_full.gml" );
    final XMLStreamReader xmlStream = reader.getXMLReader();
    final TimePeriod timePeriod = new GmlTimePeriodReader( reader ).read( xmlStream );
    assertNotNull( timePeriod );
    assertEquals( "p1", timePeriod.getId() );
    assertNull( timePeriod.getFrame() );
    final TimeInstant begin = (TimeInstant) timePeriod.getBegin();
    assertEquals( "2001-05-23", begin.getPosition().getValue() );
    final TimeInstant end = (TimeInstant) timePeriod.getEnd();
    assertEquals( "2001-06-23", end.getPosition().getValue() );
    assertOnEndElement( xmlStream );
}