ServerPropertiesConfigurator { ServerConfig configureFromProperties(String filename) throws IOException { Properties props = loadProperties(filename); return new ServerConfig() .setPort(parseServerPort(props)) .setDefaultConfigFileName(props.getProperty("jetty.config.location")); }    }
@Test public void shouldLoadDefaultConfig() throws IOException { ServerPropertiesConfigurator configurator = new ServerPropertiesConfigurator(); ServerConfig config = configurator.configureFromProperties("src/test/resources/home/conf/ehour.properties.example"); assertEquals(8000, config.getPort()); }