public ExportMessagesCommand buildFromRequest(MessagesRequest request) {
        ExportMessagesCommand.Builder builder = ExportMessagesCommand.builder()
                .timeRange(toAbsolute(request.timeRange()))
                .queryString(request.queryString())
                .streams(request.streams())
                .fieldsInOrder(request.fieldsInOrder())
                .chunkSize(request.chunkSize());

        request.timeZone().ifPresent(builder::timeZone);
        request.limit().ifPresent(builder::limit);

        return builder.build();
    }
@Test
    void convertsTimeRangeToAbsolute() {
        RelativeRange relative = relativeRange(100);
        MessagesRequest request = MessagesRequest.builder().timeRange(relative).build();

        ExportMessagesCommand command = sut.buildFromRequest(request);

        assertThat(command.timeRange()).isInstanceOf(AbsoluteRange.class);
    }