GossipPropertiesReader { public Model read(final URL url) throws IOException { assert url != null; Model model = new Model(); Context ctx = Context.create(url); String tmp = ctx.get("version"); if (!EXPECTED_VERSION.equals(tmp)) { throw new ConfigurationException("Invalid configuration version: " + tmp + ", expected: " + EXPECTED_VERSION); } model.setProperties(ctx.child(PROPERTIES).toProperties()); configureSourceNodes(model, ctx); configureProfileNodes(model, ctx); return model; }  Model read(final URL url);  }
@Test public void testLoad() throws IOException { URL url = getClass().getResource("gossip1.properties"); GossipPropertiesReader reader = new GossipPropertiesReader(); Model model = reader.read(url); System.out.println(model); }