### Question:
SystemParameterCache { public static Object get(String key, Object defaultValue) { if (cache.isEmpty()) { fillCache(); } Object value = cache.get(key); return (value == null) ? defaultValue : value; }  static void fillCache(); static Object get(String key, Object defaultValue);  }### Answer:
@Test public void get() { SessionFactory sessionFactory = RobeHibernateBundle.getInstance().getSessionFactory(); ManagedSessionContext.bind(sessionFactory.openSession()); SystemParameterDao dao = new SystemParameterDao(sessionFactory); SystemParameter parameter = new SystemParameter(); parameter.setValue("ROBE"); parameter.setKey("TEST"); parameter = dao.create(parameter); dao.flush(); Object value = SystemParameterCache.get("DEFAULT", "default"); Assert.assertTrue(value.equals("default")); Object value2 = SystemParameterCache.get("TEST", "none"); Assert.assertTrue(value2.equals("ROBE")); dao.detach(parameter); dao.delete(parameter); dao.flush(); }