### Question:
LogFactory implements Closeable { public static void configureFromSystemProperties(WorkerPool workerPool) { configureFromSystemProperties(INSTANCE, workerPool); } LogFactory();  LogFactory(MicrosecondClock clock); @SuppressWarnings("rawtypes") static Log getLog(Class clazz); static Log getLog(CharSequence key); static void configureFromSystemProperties(WorkerPool workerPool); static void configureFromSystemProperties(LogFactory factory); static void configureFromSystemProperties(LogFactory factory, WorkerPool workerPool); static void configureFromProperties(LogFactory factory, Properties properties, WorkerPool workerPool); void add(final LogWriterConfig config); void bind(); @Override void close(); Log create(CharSequence key); ObjHashSet<LogWriter> getJobs(); int getQueueDepth(); int getRecordLength(); void haltThread(); void startThread(); void assign(WorkerPool workerPool); static final LogFactory INSTANCE; static final String DEBUG_TRIGGER; static final String CONFIG_SYSTEM_PROPERTY; }### Answer:
@Test(expected = LogError.class) public void testBadWriter() { System.setProperty(LogFactory.CONFIG_SYSTEM_PROPERTY, "/nfslog-bad-writer.conf"); try (LogFactory factory = new LogFactory()) { LogFactory.configureFromSystemProperties(factory, null); } }