### Question:
RtcDefectAdapter implements DefectAdapter { String toFilter(String fieldName, List<String> fieldValues) { StringBuilder builder = new StringBuilder(); for (String fieldValue : fieldValues) { if (builder.length() > 0) { builder.append(" or "); } builder.append(fieldName).append("=").append(fieldValue); } return builder.toString(); } @Autowired  RtcDefectAdapter(SettingService settingService,
                            RestTemplateBuilder restTemplateBuilder,
                            RtcDateTimeAdapter rtcDateTimeAdapter,
                            SettingProviderService settingProviderService); @Override List<Defect> getStatuses(long projectId, List<String> ids); @Override List<Defect> getChangedDefects(long projectId, Date since); @Override boolean isValidId(long projectId, String id); @Override String getIdFormatHint(long projectId); @Override String getCode(); @Override String getName(); @Override List<SettingDTO> getSettingDefinitions();  }### Answer:
@Test public void toFilter_should_work() { String fieldName = "field"; List<String> fieldValues = Arrays.asList("1", "2", "'C'"); final String filter = cut.toFilter(fieldName, fieldValues); assertThat(filter).isEqualTo("field=1 or field=2 or field='C'"); }