### Question:
RepositorySearchCriteria { @NotNull public static Builder builder() { return new Builder(); } private  RepositorySearchCriteria(Builder builder); @NotNull static Builder builder(); @NotNull static RepositorySearchCriteria empty(); int getLimit(); int getOffset(); @Nullable String getQuery(); @Nullable Boolean getRecursive(); @Nullable SortType getSortBy(); int getResourceMask(); @Nullable String getFolderUri(); AccessType getAccessType(); static final int DEFAULT_OFFSET; static final int DEFAULT_LIMIT; static int ALL; static int REPORT; static int DASHBOARD; static int LEGACY_DASHBOARD; static int FOLDER; static int REPORT_OPTION; static int FILE; }### Answer:
@Test public void shouldNotAcceptNegativeOffset() { mExpectedException.expect(IllegalArgumentException.class); mExpectedException.expectMessage("Offset should be positive"); RepositorySearchCriteria.builder().withOffset(-1).build(); }
@Test public void shouldNotAcceptNegativeLimit() { mExpectedException.expect(IllegalArgumentException.class); mExpectedException.expectMessage("Limit should be positive"); RepositorySearchCriteria.builder().withLimit(-1).build(); }