@Test
public void evaluateInstantInstant() {

    assertThat( compareEndWithBegin( instant( "2014-01-01" ), instant( "2014-01-01" ) ), is( 0 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01T00:00:01" ), instant( "2014-01-01T00:00:01" ) ), is( 0 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01T00:00:01.000" ), instant( "2014-01-01T00:00:01.000" ) ),
                is( 0 ) );
    assertThat( compareEndWithBegin( instant( "INDETERMINATE" ), instant( "INDETERMINATE" ) ), is( 0 ) );
    assertThat( compareEndWithBegin( instant( "INDETERMINATE" ), instant( "2014-01-01T00:00:01" ) ), is( 0 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01T00:00:01" ), instant( "INDETERMINATE" ) ), is( 0 ) );
    assertThat( compareEndWithBegin( instant( "2015-01-01" ), instant( "2014-01-01" ) ), is( 1 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01T00:00:02" ), instant( "2014-01-01T00:00:01" ) ), is( 1 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01T00:00:01.001" ), instant( "2014-01-01T00:00:01.000" ) ),
                is( 1 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01" ), instant( "2015-01-01" ) ), is( -1 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01T00:00:01" ), instant( "2014-01-01T00:00:02" ) ), is( -1 ) );
    assertThat( compareEndWithBegin( instant( "2014-01-01T00:00:01.000" ), instant( "2014-01-01T00:00:01.001" ) ),
                is( -1 ) );
}