ImmutableSearchQueryBuilder implements SearchQueryBuilder { public static ImmutableSearchQueryBuilder of(final SearchFilter searchFilter) { return new ImmutableSearchQueryBuilder(checkNotNull(searchFilter, "search filter")); } private  ImmutableSearchQueryBuilder(final SearchFilter theSearchFilter); static ImmutableSearchQueryBuilder of(final SearchFilter searchFilter); @Override SearchQueryBuilder sortAsc(final CharSequence propertyPath); @Override SearchQueryBuilder sortDesc(final CharSequence propertyPath); @Override SearchQueryBuilder removeSortOptionFor(final CharSequence propertyPath); @Override SearchQueryBuilder limit(final int offset, final int count); @Override SearchQueryBuilder removeLimitation(); @Override SearchQuery build();  }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullSearchFilter() { ImmutableSearchQueryBuilder.of(null); }