### Question:
Settings2PropertiesFactoryBean implements FactoryBean<Properties> { @Override public Properties getObject() { Properties result = new Properties(); result.putAll(settings.getAsMap()); return result; }  @Override Properties getObject(); @Override Class<Properties> getObjectType(); @Override boolean isSingleton(); void setSettings(Settings settings);  }### Answer:
@Test public void testGetObject() { Settings2PropertiesFactoryBean propertiesFactoryBean = new Settings2PropertiesFactoryBean(); propertiesFactoryBean.setSettings(settings); Properties properties = propertiesFactoryBean.getObject(); Assert.assertNotNull(properties); Assert.assertEquals("testValue",properties.get("module01.testStringKey")); Assert.assertTrue(propertiesFactoryBean.isSingleton()); Class<Properties> clazz = propertiesFactoryBean.getObjectType(); Assert.assertNotNull(clazz); System.out.println("stringValue==" + stringValue); Assert.assertEquals("testValue", stringValue); System.out.println("intValue==" + intValue); Assert.assertTrue( 9 == intValue); }