void createServer(TestContext testContext, TestConfigurer testConfigurer, ServerProvider serverProvider, Application application) throws Exception { //configure and start the server Object serverConfig = serverProvider.configure(testContext); serverConfig = testConfigurer.configure(testContext, serverConfig); ServerInstance serverInstance = serverProvider.start(testContext, application, serverConfig); testContext .addProperty(TestContextProperties.SERVER_INSTANCE, serverInstance) .addProperty(serverInstance.getFqn(), serverInstance.getProperties()) .addProperty(TestContextProperties.SERVER_BASE_URI, serverInstance.getBaseURI()) .addProperty(TestContextProperties.SERVER, serverInstance .getServer().getValue()); }