Configuration { public static Configuration fromStream(InputStream inputStream) throws JAXBException { return ConfigTemplateHelper.unmarshallFromXmlStream(inputStream); }  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 testFromStream() throws JAXBException { InputStream inputStream = this.getClass().getResourceAsStream("/application-test.xml"); Configuration configuration = Configuration.fromStream(inputStream); Assert.assertTrue(configuration.hasProperty("testkey1")); }