@Test public void test_should_not_thrown_exception_for_a_valid_frequency_search_type() { final ServiceTypeSearchCriteria searchCriteria = ServiceTypeSearchCriteria.builder() .complaintTypeSearch("FREQUENCY") .count(10) .build(); searchCriteria.validate(); }
public void validate() { validateSearchType(); validateCategorySearchType(); }
ServiceTypeSearchCriteria { public void validate() { validateSearchType(); validateCategorySearchType(); } }
ServiceTypeSearchCriteria { public void validate() { validateSearchType(); validateCategorySearchType(); }  }
ServiceTypeSearchCriteria { public void validate() { validateSearchType(); validateCategorySearchType(); }  ServiceRequestTypeSearch getComplaintTypeSearch(); int getCount(); void validate(); boolean isCategorySearch(); boolean isFrequencySearch(); boolean isReturnAll(); }
ServiceTypeSearchCriteria { public void validate() { validateSearchType(); validateCategorySearchType(); }  ServiceRequestTypeSearch getComplaintTypeSearch(); int getCount(); void validate(); boolean isCategorySearch(); boolean isFrequencySearch(); boolean isReturnAll();  }