JsonHomeProperties { public static Properties getProperties() { final InputStream is = JsonHomeProperties.class.getResourceAsStream("jsonhome.properties"); final Properties properties = new Properties(); if (is == null) { return properties; } else { try { properties.load(is); is.close(); } catch (IOException e) {} } return properties; } private  JsonHomeProperties(); static Properties getProperties();  }
@Test public void testReadingProperties() throws Exception { Properties properties = JsonHomeProperties.getProperties(); assertEquals(3, properties.size()); }