### Question:
TemplateVariables { Map<String, String> getParagraphVariables() { final Set<String> propertyNames = properties.stringPropertyNames(); final HashMap<String, String> resultMap = new HashMap<>(); for (final String propertyName : propertyNames) { if (isParagraphProperty(propertyName)) { extractProperty(resultMap, propertyName); } } return resultMap; } TemplateVariables();   }### Answer:
@Test public void testGetParagraphVariables() throws IOException { final String properties = "paragraph.full=this is a complete paragraph\n" + "strange.key=willBeSkipped\n" + "comment.schnack=me too"; final ByteArrayInputStream inputStream = new ByteArrayInputStream(properties.getBytes()); variables.load(inputStream); final Map<String, String> paragraphVariables = variables.getParagraphVariables(); assertEquals(2, paragraphVariables.size()); assertEquals("this is a complete paragraph", paragraphVariables.get("paragraph.full")); assertEquals("me too", paragraphVariables.get("comment.schnack")); }