### Question:
TemplateVariables { Map<String, String> getWordVariables() { final Set<String> propertyNames = properties.stringPropertyNames(); final HashMap<String, String> resultMap = new HashMap<>(); for (final String propertyName : propertyNames) { if (propertyName.startsWith("word.")) { extractProperty(resultMap, propertyName); } } return resultMap; } TemplateVariables();   }### Answer:
@Test public void testGetWordVariables() throws IOException { final String properties = "word.schnick=juchee\n" + "word.schnack=blablabla\n" + "something.else=weDoNotSeeThis"; final ByteArrayInputStream inputStream = new ByteArrayInputStream(properties.getBytes()); variables.load(inputStream); final Map<String, String> wordVariables = variables.getWordVariables(); assertEquals(2, wordVariables.size()); assertEquals("juchee", wordVariables.get("word.schnick")); assertEquals("blablabla", wordVariables.get("word.schnack")); }