PropertyHolder { public static Map<String, String> getProperties() { return PROPERTIES; }  static Map<String, String> getProperties(); static Boolean getBooleanProperty(final String name); static Boolean getBooleanProperty(final String name, final Boolean defaultValue); static Integer getIntProperty(final String name); static Integer getIntProperty(final String name, final Integer defaultValue); static Long getLongProperty(final String name); static Long getLongProperty(final String name, final Long defaultValue); static String getProperty(final String name); static String getProperty(final String name, final String defaultValue); static void setProperty(final String name, final String value); static String getErrorMessage(final int code, final Object... params); static String getProjectName(); static String getVersion();  }
@Test public void getProperties() { Map<String, String> map = PropertyHolder.getProperties(); Assert.isTrue(map.containsKey("test.str.str1"), ErrorCodeDef.SYSTEM_ERROR_10001); Assert.isTrue(map.containsKey("test01"), ErrorCodeDef.SYSTEM_ERROR_10001); Assert.isTrue(map.containsKey("test02"), ErrorCodeDef.SYSTEM_ERROR_10001); }