### Question:
SparqlQueryUtils { protected static final String getGrammarEscapedValue(String value){ StringBuilder sb = new StringBuilder(value.length()+4); addGrammarEscapedValue(sb, value); return sb.toString(); } private  SparqlQueryUtils(); static String createSparqlConstructQuery(SparqlFieldQuery query,
                                                    SparqlEndpointTypeEnum endpointType,
                                                    String... additionalFields); static String createSparqlConstructQuery(SparqlFieldQuery query,
                                                    int limit,
                                                    SparqlEndpointTypeEnum endpointType,
                                                    String... additionalFields); static String createSparqlSelectQuery(SparqlFieldQuery query, SparqlEndpointTypeEnum endpointType); static String createSparqlSelectQuery(SparqlFieldQuery query,
                                                 int limit,
                                                 SparqlEndpointTypeEnum endpointType); static String createSparqlSelectQuery(SparqlFieldQuery query,
                                                 boolean includeFields,
                                                 SparqlEndpointTypeEnum endpointType); static String createSparqlSelectQuery(SparqlFieldQuery query,
                                                 boolean includeFields,
                                                 int limit,
                                                 SparqlEndpointTypeEnum endpointType); static String guessXsdType(Class<?> javaClass); static void main(String[] args);  }### Answer:
@Test public void testGrammarEncodning(){ assertEquals("test\\'s",SparqlQueryUtils.getGrammarEscapedValue("test's")); assertEquals("test\\\"s",SparqlQueryUtils.getGrammarEscapedValue("test\"s")); assertEquals("new\\\nline",SparqlQueryUtils.getGrammarEscapedValue("new\nline")); }