@Test
public void testRemoveProviderWhenEmpty() {

    collector.removeProvider("provider1");
    assertEquals(1, logger.records().size());
    assertEquals("Removing provider1\n", logger.getFileContent());
}