    @Test
    public void testLog() throws Exception {

        ThrowErrorTree tree = new ThrowErrorTree();
        Throwable testThrowable = new Throwable("test");
        try {
            tree.log(Log.INFO, "tag", "message", testThrowable);
            fail("Expected LogPriorityExceededError");
        } catch (LogPriorityExceededError e) {
            assertEquals(testThrowable, e.getCause());
        }
    }