@Test
public void testEscapingAuthenticator() throws Exception {

    try {
        Class<?> k = ErrorAuthenticator.class;
        javax.mail.Authenticator a;
        a = LogManagerProperties.newAuthenticator(k.getName());
        assertEquals(k, a.getClass());
        setPending(new ThreadDeath());
        try {
            a = LogManagerProperties.newAuthenticator(k.getName());
            fail(String.valueOf(a));
        } catch (ThreadDeath expect) {
        }
        setPending(new OutOfMemoryError());
        try {
            a = LogManagerProperties.newAuthenticator(k.getName());
            fail(String.valueOf(a));
        } catch (OutOfMemoryError expect) {
        }
    } finally {
        setPending(null);
    }
}