### Question:
SearchRestrictions { public static SearchCriterion ilike(final String field, final String value) { if (value == null) { return isNull(field); } return new SearchCriterionImpl(Restrictions.ilike(field, convertWildcards(value))); }  static SearchCriterion or(final SearchCriterion firstCriterion, final SearchCriterion secondCriterion,
            final SearchCriterion... otherCriteria); static SearchCriterion and(final SearchCriterion firstCriterion, final SearchCriterion secondCriterion,
            final SearchCriterion... otherCriteria); static SearchCriterion not(final SearchCriterion criterion); static SearchCriterion idEq(final long value); static SearchCriterion idNe(final long value); static SearchCriterion allEq(final Map<String, Object> values); static SearchCriterion like(final String field, final String value); static SearchCriterion like(final String field, final String value, final SearchMatchMode mode); static SearchCriterion ilike(final String field, final String value); static SearchCriterion ilike(final String field, final String value, final SearchMatchMode mode); static SearchCriterion le(final String field, final Object value); static SearchCriterion lt(final String field, final Object value); static SearchCriterion ge(final String field, final Object value); static SearchCriterion gt(final String field, final Object value); static SearchCriterion ne(final String field, final Object value); static SearchCriterion eq(final String field, final Object value); static SearchCriterion iEq(final String field, final Object value); static SearchCriterion leField(final String field, final String otherField); static SearchCriterion ltField(final String field, final String otherField); static SearchCriterion geField(final String field, final String otherField); static SearchCriterion gtField(final String field, final String otherField); static SearchCriterion neField(final String field, final String otherField); static SearchCriterion eqField(final String field, final String otherField); static SearchCriterion isNotNull(final String field); static SearchCriterion isNull(final String field); static SearchCriterion sizeEq(final String field, final int size); static SearchCriterion sizeLe(final String field, final int size); static SearchCriterion sizeLt(final String field, final int size); static SearchCriterion sizeGe(final String field, final int size); static SearchCriterion sizeGt(final String field, final int size); static SearchCriterion sizeNe(final String field, final int size); static SearchCriterion isEmpty(final String field); static SearchCriterion isNotEmpty(final String field); static SearchCriterion between(final String field, final Object lo, final Object hi); static SearchCriterion in(final String field, final Collection<?> values); static SearchCriterion inIgnoringCase(final String field, final Collection<?> values); static SearchCriterion in(final String field, final Object... values); static SearchCriterion belongsTo(final String field, final String pluginIdentifier, final String modelName,
            final long id); static SearchCriterion belongsTo(final String field, final DataDefinition dataDefinition, final long id); static SearchCriterion belongsTo(final String field, final Entity entity); static SearchDisjunction disjunction(); static SearchConjunction conjunction();  }### Answer:
@Test public final void shouldIlikeReturnIsNullCriteriaIfGivenValueIsNull() { SearchCriterion res = SearchRestrictions.ilike(FIELD_NAME, null); assertEquals(IS_NULL.toString(), res.getHibernateCriterion().toString()); }
@Test public final void shouldIlikeWithMatchModeReturnIsNullCriteriaIfGivenValueIsNull() { SearchCriterion res = SearchRestrictions.ilike(FIELD_NAME, null, SearchMatchMode.ANYWHERE); assertEquals(IS_NULL.toString(), res.getHibernateCriterion().toString()); }