    @Test
    public void testIsLoggable() throws Exception {

        ThrowErrorTree tree = new ThrowErrorTree();
        assertTrue(tree.isLoggable(Log.ERROR));
        assertFalse(tree.isLoggable(Log.WARN));

        tree = new ThrowErrorTree(Log.INFO);
        assertTrue(tree.isLoggable(Log.INFO));
        assertFalse(tree.isLoggable(Log.DEBUG));
    }