
webServer.setPackages("org.neo4j.server.web");
NeoServer server = new NeoServer(configurator, database, webServer);</BUG>
server.start(null);
Client client = Client.create();
<BUG>ClientResponse response = client.resource("http://localhost:" + webServer.getPort() + "/webadmin/welcome.html").get(ClientResponse.class);
</BUG>
assertThat(response.getStatus(), is(200));
assertThat( response.getHeaders().getFirst("Content-Type"), containsString("html"));
server.stop();

assertThat(response.getStatus(), is(200));
assertThat(response.getEntity(String.class), containsString("Welcome"));
}
@Test
public void serverShouldProvideAWelcomePage() {
NeoServer server = new NeoServer();
server.start(null);
Client client = Client.create();
ClientResponse response = client.resource("http://localhost:" + configurator().configuration().getInt("org.neo4j.webserver.port") + "/webadmin/welcome.html").get(ClientResponse.class);
assertThat(response.getStatus(), is(200));
assertThat( response.getHeaders().getFirst("Content-Type"), containsString("html"));
server.stop();
