### Question:
SolrCriterionTransformer { public String transformToEqualsCriterion(F field, String value) { if (StringUtils.isBlank(value)) { return StringUtils.EMPTY; } return buildEqualsCriterion(field.getFieldName(), value, Operator.AND); }  String transformToEqualsCriterionWithParsing(F field, String value); String transformToEqualsCriterion(F field, String value); String transformToEqualsCriterion(F field, String value, Operator operator); String transformToEqualsCriterion(F field, Integer value); String transformToEqualsCriterion(F field, Long value); String transformToEqualsCriterion(F field, Enum<?> enumValue); String transformToEqualsCriteria(F field, List<String> values, Operator operator); String transformToEqualsEnumCriteria(F field, List<? extends Enum<?>> values, Operator operator); String transformToDateRangeCriterion(F field, LocalDate from, LocalDate to); String transformToRangeCriterion(F field, String from, String to); String and(String criterion); String join(List<String> criteria);  }### Answer:
@Test public void transformToEqualsCriterion_STRING() { String actual = criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.KEYWORD, "word"); assertEquals("+keyword:word", actual); }
@Test public void transformToEqualsCriterion_OPERATOR_OR() { String actual = criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.KEYWORD, "word", Operator.OR); assertEquals("keyword:word", actual); }
@Test public void transformToEqualsCriterion_OPERATOR_AND() { String actual = criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.KEYWORD, "word", Operator.AND); assertEquals("+keyword:word", actual); }
@Test public void transformToEqualsCriterion_ESCAPING() { assertEquals("+keyword:\\AND", criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.KEYWORD, " AND ")); assertEquals("+keyword:\\OR", criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.KEYWORD, " OR ")); assertEquals("+keyword:\\NOT", criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.KEYWORD, " NOT ")); }
@Test public void transformToEqualsCriterion_INT() { String actual = criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.CC_COURT_ID, 12); assertEquals("+ccCourtId:12", actual); }
@Test public void transformToEqualsCriterion_ENUM() { String actual = criterionTransformer.transformToEqualsCriterion(JudgmentIndexField.COURT_TYPE, CourtType.SUPREME); assertEquals("+courtType:SUPREME", actual); }