@Override
    public int compareTo(DateTimeStamp dateTimeStamp) {
        return  comparator.compare(this,dateTimeStamp);
    }
@Test
    void compareWithNANValue(){
        // This is an illegal state which is unlikely to happen in the context of a single GC log.
        DateTimeStamp dateTimeStamp = new DateTimeStamp(12d);
        DateTimeStamp dateTimeStampCompare = new DateTimeStamp(Double.NaN);
        assertThrows(IllegalStateException.class,
                () -> { dateTimeStamp.compareTo(dateTimeStampCompare); },
                "IllegalStateException Not Thrown");
    }