### Question:
TemplateVariables { Map<String, String> getFiguresVariables() { final Set<String> propertyNames = properties.stringPropertyNames(); final HashMap<String, String> resultMap = new HashMap<>(); for (final String propertyName : propertyNames) { if (isFiguresProperty(propertyName)) { extractProperty(resultMap, propertyName); } } return resultMap; } TemplateVariables();   }### Answer:
@Test public void testGetFiguresVariables() throws IOException { final String properties = "figures.cool=some_valid_figure_files\n" + "strange.key=somethingElse\n" + "figures.more=another_set_of_figures"; final ByteArrayInputStream inputStream = new ByteArrayInputStream(properties.getBytes()); variables.load(inputStream); final Map<String, String> figuresVariables = variables.getFiguresVariables(); assertEquals(2, figuresVariables.size()); assertEquals("some_valid_figure_files", figuresVariables.get("figures.cool")); assertEquals("another_set_of_figures", figuresVariables.get("figures.more")); }