@Test
public void setsWarningHeaderIfDegraded() throws Exception {

    monitoredService.setStatus(Status.DEGRADED);
    impl.handleRequest(req, resp);
    boolean found = false;
    for(Object val : resp.getHeaders("Warning")) {
        if ("199 jrugged \"Status degraded\"".equals(val)) {
            found = true;
        }
    }
    assertTrue(found);
}