public static AmountRequest fromString(String amountRequestAsString) {
        if (isNullOrEmpty(amountRequestAsString)) return null;

        return new AmountRequest(
                lenientSubstringBetween(amountRequestAsString, "order=", "&"),
                Integer.parseInt(lenientSubstringBetween(amountRequestAsString, "limit=", "&"))
        );
    }
@Test
    void testOffsetBasedPageRequestWithEmptyString() {
        OffsetBasedPageRequest offsetBasedPageRequest = OffsetBasedPageRequest.fromString("");

        assertThat(offsetBasedPageRequest).isNull();
    }