### Question:
ProfilesConf implements PluginConf { @Override public Map<String, String> getOptionMappings(String profileName) { return getProfile(profileName).getOptionsMap(); } private  ProfilesConf();   ProfilesConf(String internalProfilesFilename, String externalProfilesFilename); static ProfilesConf getInstance(); @Override Map<String, String> getOptionMappings(String profileName); @Override Map<String, String> getPlugins(String profileName); @Override String getProtocol(String profileName); @Override String getHandler(String profileName);  }### Answer:
@Test public void testOptionMappingsMissingMapping() { ProfilesConf profilesConf = getProfilesConf("optionMappings"); Map<String, String> map = profilesConf.getOptionMappings("missing-mappings"); assertTrue(map.isEmpty()); }
@Test public void testOptionMappingsEmptyMapping() { ProfilesConf profilesConf = getProfilesConf("optionMappings"); Map<String, String> map = profilesConf.getOptionMappings("empty-mappings"); assertTrue(map.isEmpty()); }
@Test public void testOptionMappingsOneMapping() { ProfilesConf profilesConf = getProfilesConf("optionMappings"); Map<String, String> map = profilesConf.getOptionMappings("one-mapping"); assertEquals(1, map.size()); assertEquals("property1", map.get("option1")); }
@Test public void testOptionMappingsTwoMappings() { ProfilesConf profilesConf = getProfilesConf("optionMappings"); Map<String, String> map = profilesConf.getOptionMappings("two-mappings"); assertEquals(2, map.size()); assertEquals("prop1", map.get("option1")); assertEquals("prop2", map.get("option2")); }