@Before
  public void init() throws Exception {
    String basedir = System.getProperty("basedir", ".");
    outputFile =
        new File(basedir + "/target/test-data/haproxy-" + testName.getMethodName() + ".cfg");
    outputFile.getParentFile().mkdirs();

    String reloadCommand = "cat " + outputFile.getAbsolutePath();
    gateway.setReloadCommand(reloadCommand);

    gateway.setConfigFile(outputFile.getAbsolutePath());
    String name = "config.mvel";
    URL resource = getClass().getResource(name);
    if (resource == null) {
      resource = getClass().getClassLoader().getResource("io/fabric8/gateway/haproxy/config.mvel");
    }
    assertNotNull("Should have found config file " + name + " on the classpath", resource);
    InputStream inputStream = resource.openStream();
    assertNotNull("Could not open the stream for " + resource, inputStream);
    String templateText = Files.toString(inputStream);
    assertNotNull("Should have loaded a the template from " + name);
    gateway.setTemplateText(templateText);
  }