JMXBeanLoader { public List<JMXBean> getJMXBeans() { return jmxBeans; } JMXBeanLoader(final Controller controller, final ConnectionWorker connectionWorker,
                         final Settings settings, final ErrorHandler errorHandler); List<JMXBean> getJMXBeans();  }
@Test public void getJMXBeansShouldIncludeThreeBeans() { final JMXBeanLoader beanLoader = new JMXBeanLoader(controller, connectionWorker, settings, errorHandler); final List<JMXBean> jmxBeans = beanLoader.getJMXBeans(); assertNotNull(jmxBeans); assertEquals(3, jmxBeans.size()); assertTrue(containsBeanOfType(jmxBeans, NetworkInformation.class)); assertTrue(containsBeanOfType(jmxBeans, ControllerInformation.class)); assertTrue(containsBeanOfType(jmxBeans, GeneralInformation.class)); }