@Test
public void readMinimalExample()
                        throws Exception {

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