private List<GarbageCollectorMXBean> mockList = Arrays.asList(mockGcBean1, mockGcBean2);
private CollectorRegistry registry = new CollectorRegistry();
private GarbageCollectorExports collectorUnderTest;
@Before
public void setUp() {
<BUG>Mockito.when(mockGcBean1.getName()).thenReturn("MyGC1");
Mockito.when(mockGcBean1.getCollectionCount()).thenReturn(100L);
Mockito.when(mockGcBean1.getCollectionTime()).thenReturn(TimeUnit.SECONDS.toMillis(10));
Mockito.when(mockGcBean2.getName()).thenReturn("MyGC2");
Mockito.when(mockGcBean2.getCollectionCount()).thenReturn(200L);
Mockito.when(mockGcBean2.getCollectionTime()).thenReturn(TimeUnit.SECONDS.toMillis(20));
collectorUnderTest = new GarbageCollectorExports(mockList).register(registry);</BUG>
}

private List<GarbageCollectorMXBean> mockList = Arrays.asList(mockGcBean1, mockGcBean2);
private CollectorRegistry registry = new CollectorRegistry();
private GarbageCollectorExports collectorUnderTest;
@Before
public void setUp() {
when(mockGcBean1.getName()).thenReturn("MyGC1");
when(mockGcBean1.getCollectionCount()).thenReturn(100L);
when(mockGcBean1.getCollectionTime()).thenReturn(TimeUnit.SECONDS.toMillis(10));
when(mockGcBean2.getName()).thenReturn("MyGC2");
when(mockGcBean2.getCollectionCount()).thenReturn(200L);
when(mockGcBean2.getCollectionTime()).thenReturn(TimeUnit.SECONDS.toMillis(20));
collectorUnderTest = new GarbageCollectorExports(mockList).register(registry);
}
