### Question:
MysqlEventSource implements EventSource { @Override public void cleanup() { configurator.cleanup(); } MysqlEventSource(ConnectionProvider connectionProvider, String tableName); @VisibleForTesting  MysqlEventSource(ConnectionProvider connectionProvider, String tableName, MysqlConfigurator configurator); @Override List<Event<Map<String, Object>>> getNewEvents(); @Override void connect(); @Override void disconnect(); @Override boolean isConnected(); @Override void setup(); @Override void cleanup();  }### Answer:
@Test(groups = SMALL) public void testSetupCallsTheCleanupMethodOfTheConfigurator() { MysqlConfigurator mockedConfigurator = mock(MysqlConfigurator.class); MysqlEventSource eventSource = new MysqlEventSource(provider, TEST_TABLE_NAME, mockedConfigurator); eventSource.cleanup(); verify(mockedConfigurator).cleanup(); }