StartServer { public StartServer(final int sPort) throws Exception { System.setProperty("org.jaxrx.systemPath", "org.sirix.service.jaxrx.implementation.sirixMediator"); System.setProperty("org.jaxrx.systemName", "sirix"); jetty = new JettyServer(sPort); } StartServer(final int sPort); static void main(final String[] args); void stopServer();  }
@Test @Ignore public void startServer() throws Exception { StartServer.main(new String[] { "8093" }); final Client client = Client.create(); final WebResource resource = client.resource("http: final ClientResponse anotherResponse = resource.accept("text/xml").get( ClientResponse.class); final int status = anotherResponse.getStatus(); assertEquals("checks if status meets status 200", 200, status); }