@Test
public void evaluatePeriodInstant() {

    assertThat( compareEndWithBegin( period( "2014-01-01T00:00:01", "2014-01-01T00:00:01" ),
                                     instant( "2014-01-01T00:00:01" ) ), is( 0 ) );
    assertThat( compareEndWithBegin( period( "2014-01-01T00:00:01", "2014-01-01T00:00:03" ),
                                     instant( "2014-01-01T00:00:03" ) ), is( 0 ) );
    assertThat( compareEndWithBegin( period( "2014-01-01T00:00:01", "2014-01-01T00:00:03" ),
                                     instant( "2014-01-01T00:00:02" ) ), is( 1 ) );
    assertThat( compareEndWithBegin( period( "2014-01-01T00:00:01", "2014-01-01T00:00:03" ),
                                     instant( "2014-01-01T00:00:01" ) ), is( 1 ) );
    assertThat( compareEndWithBegin( period( "2014-01-01T00:00:01", "2014-01-01T00:00:03" ),
                                     instant( "2014-01-01T00:00:00" ) ), is( 1 ) );
    assertThat( compareEndWithBegin( period( "2014-01-01T00:00:01", "2014-01-01T00:00:03" ),
                                     instant( "2014-01-01T00:00:04" ) ), is( -1 ) );
}