@Test
public void formatStringReplaceQuutes() {

    QueryBuilderOptions options = new QueryBuilderOptions();
    options.dontQuote = false;
    options.replaceSingleQuotes = true;
    options.singleQuoteReplacement = "#";
    String fieldName = "N'A'ME";
    String actual = Validator.formatValue(fieldName, options);
    String expected = "'N#A#ME'";
    assertEquals(expected, actual);
}