Configuration { public static Configuration fromResource(String resourceName) throws JAXBException { return ConfigTemplateHelper.unmarshallFromResource(resourceName); }  List<Property> getProperties(); Property getProperty(String name); boolean hasProperty(String name); static Configuration fromStream(InputStream inputStream); static Configuration fromResource(String resourceName); static Configuration fromString(String xmlContent); int size();  }
@Test public void testFromResource() throws JAXBException { String resource = "application-test.xml"; Configuration configuration = Configuration.fromResource(resource); Assert.assertEquals("testvalue1", configuration.getProperty("testkey1").getValue()); Assert.assertEquals("testkey1", configuration.getProperty("testkey1").getName()); }