@Test
    public void testInitializationFailures() {

        PagedRequest.fromStartWithLimit(0);

        PagedRequest.fromStartWithPageSize(0);

        PagedRequest.ofOffsetAndLimit(0, 0);

        PagedRequest.ofPageNumberAndPageSize(1, 0);

        try {
            PagedRequest.fromStartWithLimit(-1);
            fail("Limit can't be set to -1");
        } catch (IllegalArgumentException ex) {
            // Not tracked
        }

        try {
            PagedRequest.fromStartWithPageSize(-1);
            fail("Page size can't be set to -1");
        } catch (IllegalArgumentException ex) {
            // Not tracked
        }

        try {
            PagedRequest.ofOffsetAndLimit(0, -1);
            fail("Limit can't be set to -1");
        } catch (IllegalArgumentException ex) {
            // Not tracked
        }

        try {
            PagedRequest.ofPageNumberAndPageSize(1, -1);
            fail("Page size can't be set to -1");
        } catch (IllegalArgumentException ex) {
            // Not tracked
        }

        try {
            PagedRequest.ofOffsetAndLimit(-1, 10);
            fail("Offset can't be set to -1");
        } catch (IllegalArgumentException ex) {
            // Not tracked
        }

        try {
            PagedRequest.ofPageNumberAndPageSize(0, 10);
            fail("Page number can't be set to 0");
        } catch (IllegalArgumentException ex) {
            // Not tracked
        }

        try {
            PagedRequest.ofPageNumberAndPageSize(-1, 10);
            fail("Page number can't be set to -1");
        } catch (IllegalArgumentException ex) {
            // Not tracked
        }
    }