@Test public void test_generateMBean() { assertThat( () -> generator.generateMBean(null), is(throwing(instanceOf(NullPointerException.class)))); StandardMBean mBean = generator.generateMBean(MyService.class, service); verifyMBean(mBean); }
<T> StandardMBean generateMBean(DiagnosticServiceDescriptor<T> descriptor) { requireNonNull(descriptor); return generateMBean(descriptor.getServiceInterface(), descriptor.getServiceImplementation()); }
TerracottaMBeanGenerator { <T> StandardMBean generateMBean(DiagnosticServiceDescriptor<T> descriptor) { requireNonNull(descriptor); return generateMBean(descriptor.getServiceInterface(), descriptor.getServiceImplementation()); } }
TerracottaMBeanGenerator { <T> StandardMBean generateMBean(DiagnosticServiceDescriptor<T> descriptor) { requireNonNull(descriptor); return generateMBean(descriptor.getServiceInterface(), descriptor.getServiceImplementation()); }  }
TerracottaMBeanGenerator { <T> StandardMBean generateMBean(DiagnosticServiceDescriptor<T> descriptor) { requireNonNull(descriptor); return generateMBean(descriptor.getServiceInterface(), descriptor.getServiceImplementation()); }   }
TerracottaMBeanGenerator { <T> StandardMBean generateMBean(DiagnosticServiceDescriptor<T> descriptor) { requireNonNull(descriptor); return generateMBean(descriptor.getServiceInterface(), descriptor.getServiceImplementation()); }    }