### Question:
SettingsUtil { public static Settings getSettings() throws SettingsBuildingException { DefaultSettingsBuilder defaultSettingsBuilder = new DefaultSettingsBuilder(); DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest(); File userSettingsFile = new File(System.getProperty("user.home"), ".m2" + File.separator + "settings.xml"); request.setUserSettingsFile(userSettingsFile); defaultSettingsBuilder.setSettingsWriter(new DefaultSettingsWriter()); defaultSettingsBuilder.setSettingsReader(new DefaultSettingsReader()); defaultSettingsBuilder.setSettingsValidator(new DefaultSettingsValidator()); SettingsBuildingResult build = defaultSettingsBuilder.build(request); return build.getEffectiveSettings(); } private  SettingsUtil(); static Settings getSettings(); static String getLocalRepositoryLocation(final Settings settings);  }### Answer:
@Test public void testGetSettings() throws Exception { Settings settings = SettingsUtil.getSettings(); Assert.assertNotNull(settings); }