@Test
public void testBadSeverity() throws Exception {

    TestUtil.testBlock(() -> {
        boolean threw = false;
        try {
            ProgressCheck check = new Paths().newInstance(key("severity", "whoops").key("rules", arr(denyEtc)).get());
        } catch (IllegalArgumentException e) {
            threw = true;
        }
        assertTrue("bad severity should cause exception on construction.", threw);
    });
}