ObjectifyRecordFormatter extends AbstractRecordFormatter { @Override public String formatRecord(DeleteRecordDto record) { return "Delete record formatting not implemented yet"; }  @Override String formatRecord(DeleteRecordDto record); @Override String formatRecord(GetRecordDto record); @Override String formatRecord(PutRecordDto record); @Override String formatRecord(QueryRecordDto record);  }
@Test public void formatRecord_filterValueContainsUnicodeReplacementCharacter_replacementCharacterIsEscaped() { QueryRecordDto queryRecordDto = getQueryRecordDto(); QueryFilterDto queryFilterDto = getQueryFilterDto("theValue" + '\ufffd'); queryRecordDto.getQuery().getFilters().add(queryFilterDto); String formatted = formatter.formatRecord(queryRecordDto); assertNotEquals("Formatted query still contains unicode character", "query().filter(\"null >\", theValue�)", formatted); assertEquals("Formatted query does not contain escaped unicode character", "query().filter(\"null >\", theValue\\ufffd)", formatted); }