@Test
public void checkInitialization() throws UnknownHostException {

    String portProperty = System.getProperty(PROPERTY_PORT, null);
(portProperty == null || !isInteger(portProperty)){
ogger.getLogger(GrapesServerTest.class.getSimpleName()).info("No variable HTTP_PORT define, server mock will be run on the default port value: " + DEFAULT_PORT);
        portProperty = DEFAULT_PORT;
    else{
        Logger.getLogger(GrapesServerTest.class.getSimpleName()).info("Uses port " + portProperty + " as grapes http port for tests.");
    }
    
    String adminPortProperty = System.getProperty(PROPERTY_ADMIN_PORT, null);
(adminPortProperty == null || !isInteger(adminPortProperty)){
        Logger.getLogger(GrapesServerTest.class.getSimpleName()).info("No variable HTTP_ADMIN_PORT define, server mock will be run on the default port value: " + DEFAULT_ADMIN_PORT);
        adminPortProperty = DEFAULT_ADMIN_PORT;
    else{
        Logger.getLogger(GrapesServerTest.class.getSimpleName()).info("Uses port " + adminPortProperty + " as admin port for grapes tests.");
    }
    
    final String templatePath = getClass().getResource("server-conf-template.yml").getPath();
    final String confPath = overrideConfiguration(templatePath, portProperty, adminPortProperty);
    try {
        File templates = new File(templatePath).getParentFile();
        FileUtils.copyFileToDirectory(new File(templates, "all-messages.txt"), new File("target"));
    } catch(IOException e) {
        e.printStackTrace();
    }
    final GrapesServerTest grapesServer = new GrapesServerTest();
    final String[] args = {"server",confPath};
    
    Throwable exception  = null;
    
    try {
        grapesServer.run(args);
    } catch (Exception e) {
        exception = e;
    }
    
    assertNull(exception);
    
}