public RepositoryElementInterface dataNodeToElement( DataNode rootNode ) throws KettleException {
    SlaveServer slaveServer = new SlaveServer();
    dataNodeToElement( rootNode, slaveServer );
    return slaveServer;
  }
@Test
  public void testDataNodeToElement() throws KettleException {
    SlaveServer slaveServer = new SlaveServer();
    slaveDelegate.dataNodeToElement( mockDataNode, slaveServer );
    Assert.assertEquals( PROP_HOST_NAME_VALUE, slaveServer.getHostname() );
    Assert.assertEquals( PROP_USERNAME_VALUE, slaveServer.getUsername() );
    Assert.assertEquals( PROP_PASSWORD_VALUE, slaveServer.getPassword() );
    Assert.assertEquals( PROP_PORT_VALUE, slaveServer.getPort() );
    Assert.assertEquals( PROP_PROXY_HOST_NAME_VALUE, slaveServer.getProxyHostname() );
    Assert.assertEquals( PROP_PROXY_PORT_VALUE, slaveServer.getProxyPort() );
    Assert.assertEquals( PROP_WEBAPP_NAME_VALUE, slaveServer.getWebAppName() );
    Assert.assertEquals( PROP_NON_PROXY_HOSTS_VALUE, slaveServer.getNonProxyHosts() );
    Assert.assertEquals( PROP_MASTER_VALUE, slaveServer.isMaster() );
    Assert.assertEquals( PROP_USE_HTTPS_PROTOCOL_VALUE, slaveServer.isSslMode() );
  }