ConfigFactory { public static String getProperty(String key) { return INSTANCE.getProperty(key); } private  ConfigFactory(); static Factory newInstance(); static T create(Class<? extends T> clazz, Map<?, ?>... imports); static String setProperty(String key, String value); static Properties getProperties(); static void setProperties(Properties properties); static String getProperty(String key); static String clearProperty(String key); static void registerLoader(Loader loader); static void setTypeConverter(Class<?> type, Class<? extends Converter<?>> converter); static void removeTypeConverter(Class<?> type);  }
@Test public void testGetProperty() { ConfigFactory.setProperty("mypath", RESOURCES_DIR); assertEquals(RESOURCES_DIR, ConfigFactory.getProperty("mypath")); }
@Test(expected = IllegalArgumentException.class) public void testGetPropertyNullKey() { ConfigFactory.getProperty(null); }
@Test(expected = IllegalArgumentException.class) public void testGetPropertiesEmptyKey() { ConfigFactory.getProperty(""); }