public static void setLogger(Logger logger) {
        if (logger == null) {
            throw new NullPointerException("Logger may not be null.");
        }

        sLogger = logger;
    }
@Test(expected = NullPointerException.class)
    public void canNotSetNullLogger() {
        LogManager.setLogger(null);
    }