public void should_not_execute_function_if_action_is_not_supported() {
Function function = mock(Function.class);
Issue issue = new DefaultIssue().setKey("ABCD");
IssueQueryResult issueQueryResult = new DefaultIssueQueryResult(newArrayList(issue));
when(finder.find(any(IssueQuery.class))).thenReturn(issueQueryResult);
<BUG>actions.add(Action.builder("link-to-jira").conditions(new NeverMatch()).functions(function).build());
</BUG>
try {
actionService.execute("ABCD", "link-to-jira", mock(UserSession.class));
} catch (Exception e){

public void should_not_execute_function_if_action_is_not_supported() {
Function function = mock(Function.class);
Issue issue = new DefaultIssue().setKey("ABCD");
IssueQueryResult issueQueryResult = new DefaultIssueQueryResult(newArrayList(issue));
when(finder.find(any(IssueQuery.class))).thenReturn(issueQueryResult);
actions.add("link-to-jira").setConditions(new NeverMatch()).setFunctions(function);
try {
actionService.execute("ABCD", "link-to-jira", mock(UserSession.class));
} catch (Exception e){
