### Question:
WebHookListener extends BuildServerAdapter { @Override public void buildInterrupted(SRunningBuild sRunningBuild) { processBuildEvent(sRunningBuild, BuildStateEnum.BUILD_INTERRUPTED); } WebHookListener(SBuildServer sBuildServer, WebHookSettingsManager settings, 
    						WebHookMainSettings configSettings, WebHookTemplateManager manager,
    						WebHookFactory factory, WebHookTemplateResolver resolver,
    						WebHookContentBuilder contentBuilder, WebHookHistoryRepository historyRepository,
    						WebHookHistoryItemFactory historyItemFactory,
    						WebHookExecutor executor); void register(); @Override void buildStarted(SRunningBuild sRunningBuild); @Override void changesLoaded(SRunningBuild sRunningBuild); @Override void buildFinished(SRunningBuild sRunningBuild); @Override void buildInterrupted(SRunningBuild sRunningBuild); @Override void beforeBuildFinish(SRunningBuild sRunningBuild); @Override void responsibleChanged(
			SProject project,
			Collection<TestName> testNames, 
			ResponsibilityEntry entry,
			boolean isUserAction); @Override void responsibleChanged(@NotNull SBuildType sBuildType,
            @NotNull ResponsibilityEntry responsibilityEntryOld,
            @NotNull ResponsibilityEntry responsibilityEntryNew); @Override void responsibleChanged(
			@NotNull SProject project,
            @NotNull Collection<BuildProblemInfo> buildProblems,
            @Nullable ResponsibilityEntry entry); @Override void responsibleRemoved(
			SProject project, 
			TestNameResponsibilityEntry entry); @Override void buildProblemsChanged(SBuild build, List<BuildProblemData> before, List<BuildProblemData> after); @Override void buildTypeAddedToQueue(SQueuedBuild queuedBuild); @Override void buildRemovedFromQueue(SQueuedBuild queuedBuild, User user, String comment); @Override void buildPinned(SBuild build, User user, String comment); @Override void buildUnpinned(SBuild build, User user, String comment); @Override void serverStartup(); static final String WEBHOOKS_SETTINGS_ATTRIBUTE_NAME; }### Answer:
@Test @Ignore public void testBuildInterruptedSRunningBuild() throws FileNotFoundException, IOException { BuildState state = new BuildState().setAllEnabled(); projSettings.addNewWebHook("1234", "MyProject", "http: when(buildHistory.getEntriesBefore(sRunningBuild, false)).thenReturn(finishedSuccessfulBuilds); whl.buildInterrupted(sRunningBuild); verify(factory.getWebHook(webHookConfig,null), times(1)).post(); }