public class IssueHandlersTest {
@Test
public void should_execute_handlers() throws Exception {
IssueHandler h1 = mock(IssueHandler.class);
IssueHandler h2 = mock(IssueHandler.class);
IssueUpdater updater = mock(IssueUpdater.class);
IssueHandlers handlers = new IssueHandlers(updater, new IssueHandler[]{h1, h2});
final DefaultIssue issue = new DefaultIssue();
handlers.execute(issue, IssueChangeContext.createScan(new Date()));