public void testSubstitutionsNoVals() {
   String src =
       "/cda-web/head.htm?css=assets/css/gameday-all-min.css&css="
           + "assets/css/custmodborderwhitebg.css&css=assets/css/gameday-top-module.css&id="
           + "$(id)&pageType=$(pagetype)&requestPath=$(REQUEST_PATH)&photoId=$(photoId)&mediaType="
           + "$(mediaType)";
   String expectedResult =
       "/cda-web/head.htm?css=assets/css/gameday-all-min.css&css="
           + "assets/css/custmodborderwhitebg.css&css=assets/css/gameday-top-module.css&id="
           + "&pageType=&requestPath=REQUEST_PATH_VALUE&photoId=&mediaType=";
   assertEquals(expectedResult, varSubNoValues.substitute(src));
 }
 public void testNoSubstitutions() {
   String str = "TheQuickBrownFoxJumpedOverTheLazyDog";
   assertEquals(str, varSubNoValues.substitute(str));
 }
 public void testEmpty() {
   assertEquals("", varSubNoValues.substitute(""));
 }
 public void testNull() {
   assertEquals("", varSubNoValues.substitute(null));
 }
 public void testHttpParam() {
   String src = "$(QUERY_STRING{'id'})";
   String expected = guid.toString();
   assertEquals(expected, varSubValues.substitute(src));
 }