### Question:
TemplateVariables { String getFiguresDirectory() { return properties.getProperty("figures.directory"); } TemplateVariables();   }### Answer:
@Test public void testGetFiguresDirectory() throws IOException { final String properties = "figures.directory=where_it_is\n" + "sparagraph.full.default=willBeSkipped"; final ByteArrayInputStream inputStream = new ByteArrayInputStream(properties.getBytes()); variables.load(inputStream); assertEquals("where_it_is", variables.getFiguresDirectory()); }