@Test
public void testBuild() throws Exception {
final Environment environment = new Environment("testEnvironment", objectMapper, validator, new MetricRegistry(),
ClassLoader.getSystemClassLoader());
environment.jersey().register(new TestResource());
environment.admin().addTask(new TestTask());
final Server server = http.build(environment);
server.start();