### Question:
PartialUriTemplate { public List<String> getVariableNames() { return variableNames; } PartialUriTemplate(String template); List<String> getVariableNames(); PartialUriTemplateComponents asComponents(); PartialUriTemplateComponents expand(Object... parameters); PartialUriTemplateComponents expand(Map<String, ?> parameters); PartialUriTemplateComponents stripOptionalVariables(List<ActionDescriptor> actionDescriptors);  }### Answer:
@Test public void testToStringWithQueryVariablesContainingDot() throws Exception { PartialUriTemplate partialUriTemplateComponents = new PartialUriTemplate ("http: assertThat(partialUriTemplateComponents.getVariableNames(), contains("foo1", "foo2", "bar.baz", "bars.empty", "offset", "size", "strings.empty")); }