### Question:
JmxReporter { public JmxReporter registerSimons() { registerSimons = true; return this; } 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 public void testRegisterSimons() throws Exception { JmxReporter.forManager(manager).beanName(CUSTOM_BEAN_NAME).beanServer(beanServer).registerSimons().start(); verify(compositeCallback).addCallback(argThat(new JmxRegistrationCallbackVerifier(JmxReporter.DEFAULT_SIMON_DOMAIN, beanServer))); }