### Question:
ConfigureSocialAuthN extends Task { Map<String, Set<String>> readPropertiesFile(String type) { String propertyFileName = type + ".properties"; try { return MapHelper.readMap(ConfigureSocialAuthN.class.getResourceAsStream(propertyFileName)); } catch (IOException ioe) { DEBUG.warning("Caught IOException while reading properties file " + propertyFileName, ioe); return Collections.emptyMap(); } }  @Override String execute(Locale locale, Map params);  }### Answer:
@Test public void testReadPropertiesFile() throws Exception { Map<String, Set<String>> properties = task.readPropertiesFile("test"); assertEquals(getMapAttr(properties, "providerName"), "Test"); assertTrue(properties.get("multivalue").contains("value1")); assertTrue(properties.get("multivalue").contains("value2")); }