private final MetricRegistry metricRegistry = new MetricRegistry();
private final AdminEnvironment env = new AdminEnvironment(handler, healthCheckRegistry, metricRegistry);
@Test
public void addsATaskServlet() throws Exception {
final Task task = new Task("thing") {
@Override
public void execute(ImmutableMultimap<String, String> parameters, PrintWriter output) throws Exception {
}
};
env.addTask(task);