### Question:
VariablesResolver { public static String replaceAllVariables(String strVars) { return replaceAllVariables(strVars, null); } private  VariablesResolver(); static void configure(Properties props); static void configure(); static URL getVariablessUrl(); static String replaceAllVariables(String strVars); static String replaceAllVariables(String strVars, DriverRequest request);  }### Answer:
@Test public void testReplaceAllVariables() { assertFalse(VariablesResolver.containsVariable("novariable")); assertFalse(VariablesResolver.containsVariable("$(varTest")); assertTrue(VariablesResolver.containsVariable("$(varTest)")); assertTrue(VariablesResolver.containsVariable("a string $(varTest) with variable")); assertTrue(VariablesResolver.containsVariable("a string $(varTest) with $(varTest) 2 variables")); String page = "some(unknownvar1)url with unkown $(unknownvar2) parameters"; String result = VariablesResolver.replaceAllVariables(page); assertEquals("some(unknownvar1)url with unkown parameters", result); page = "some$(varTest)url"; result = VariablesResolver.replaceAllVariables(page); assertEquals("someTesturl", result); page = "some$(varTest)url$(unkwownvar)"; result = VariablesResolver.replaceAllVariables(page); assertEquals("someTesturl", result); }