public String map(AmountRequest request) {
        if (request instanceof OffsetBasedPageRequest && ((OffsetBasedPageRequest) request).getOffset() > 0L) {
            return sqlOffsetBasedPageRequestMapper.mapToSqlQuery((OffsetBasedPageRequest) request, jobTable);
        } else {
            return sqlAmountRequestMapper.mapToSqlQuery(request, jobTable);
        }
    }
@Test
    void sqlJobPageRequestMapperMapsOffsetBasedPageRequest() {
        OffsetBasedPageRequest offsetBasedPageRequest = ascOnUpdatedAt(20, 10);

        String filter = jobPageRequestMapper.map(offsetBasedPageRequest);
        assertThat(filter).isEqualTo(" ORDER BY updatedAt ASC LIMIT :limit OFFSET :offset");
    }