### Question:
JmxReporter { static public JmxReporter forManager(Manager manager) { JmxReporter reporter = new JmxReporter(manager); reporter.setBeanName(DEFAULT_BEAN_NAME); reporter.simonDomain = DEFAULT_SIMON_DOMAIN; reporter.beanServer = ManagementFactory.getPlatformMBeanServer(); return reporter; } private  JmxReporter(Manager manager); static JmxReporter forManager(Manager manager); static JmxReporter forDefaultManager(); JmxReporter simonDomain(String simonDomain); JmxReporter replaceExisting(); JmxReporter registerSimons(); JmxReporter registerExistingSimons(); JmxReporter beanName(String beanName); Manager getManager(); MBeanServer getBeanServer(); void setBeanServer(MBeanServer beanServer); String getBeanName(); String getSimonDomain(); void setSimonDomain(String simonDomain); boolean isReplaceExistingMxBeans(); void setReplaceExistingMxBeans(boolean replaceExistingMxBeans); boolean isRegisterSimons(); void setRegisterSimons(boolean registerSimons); boolean isRegisterExistingSimons(); void setRegisterExistingSimons(boolean registerExistingSimons); JmxReporter start(); void stop(); static final String DEFAULT_BEAN_NAME; static final String DEFAULT_SIMON_DOMAIN; }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testSetNullManager() { JmxReporter.forManager(null); }