@Test
public void testExtractByTimeRange_intersectingEnd() throws ParseException {

    final List<SamplingPoint> samples = createSamplingPoints();
    final Date extractStart = TimeUtil.parseCcsdsUtcFormat("2003-09-01T00:00:00Z");
    final Date extractStop = TimeUtil.parseCcsdsUtcFormat("2003-09-30T23:59:59Z");
    final TimeRange extractRange = new TimeRange(extractStart, extractStop);
    final List<SamplingPoint> septemberSamples = SamplePointExporter.extractSamples(samples, extractRange);
    assertNotNull(septemberSamples);
    assertEquals(49, septemberSamples.size());
    assertEquals(151, samples.size());
    TestHelper.assertPointsInTimeRange(extractStart, extractStop, septemberSamples);
}