@Test
  public void testNoCampusCodeSearchResults() {
    service.setBusinessObjectClass(Unit.class);

    Map<String, String> fieldValues = new HashMap<String, String>();
    fieldValues.put(CAMPUS_CODE_FIELD, Constants.EMPTY_STRING);
    List<? extends BusinessObject> searchResults = service.getSearchResults(fieldValues);
    assertEquals(SEARCH_RESULTS_NO_CAMPUS_CODE_COUNT, searchResults.size());
  }
  @Test
  public void testCampusCodeSearchResults() {
    service.setBusinessObjectClass(Unit.class);

    Map<String, String> fieldValues = new HashMap<String, String>();
    fieldValues.put(CAMPUS_CODE_FIELD, CAMPUS_CODE);
    List<? extends BusinessObject> searchResults = service.getSearchResults(fieldValues);
    assertEquals(SEARCH_RESULTS_CAMPUS_CODE_COUNT, searchResults.size());

    for (BusinessObject searchResult : searchResults) {
      Unit unit = (Unit) searchResult;
      assertTrue(StringUtils.startsWith(unit.getUnitNumber(), CAMPUS_CODE));
    }
  }
  @Test
  public void testMultiCampusRows() {
    service.setBusinessObjectClass(Unit.class);
    service.setParameterService(getMockParameterService(true));
    GlobalVariables.getUserSession()
        .addObject(MultiCampusConstants.USER_CAMPUS_CODE_KEY, (Object) CAMPUS_CODE);

    List<Row> rows = service.getRows();
    assertEquals(LOOKUP_CRITERIA_FIELD_COUNT, rows.size());
    for (Row row : rows) {
      for (Field field : row.getFields()) {
        if (field.getPropertyName().equals(CAMPUS_CODE_FIELD)) {
          assertFieldProperties(field, CAMPUS_CODE_FIELD, CAMPUS_LOOKUPABLE_CLASS_NAME);
          assertEquals(CAMPUS_CODE, field.getPropertyValue());
        }
      }
    }
  }