System.out.println("Using URI: " + uploadUrl);
DefaultHttpClient client = new DefaultHttpClient();
HttpPut put = new HttpPut(uploadUrl);
client.getCredentialsProvider().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials("admin", "admin"));
NFileEntity entity = new NFileEntity(new File(featureLocation), "text/xml");
put.setEntity(entity);
HttpClient c = client;
HttpResponse response = c.execute(put);
System.out.println("Response:" + response.getStatusLine());
Assert.assertTrue(response.getStatusLine().getStatusCode() == 200 || response.getStatusLine().getStatusCode() == 202);