### Question:
IssueUtils { public static Collection<Long> parseFixedIssueNumbers(String commitMessage) { Collection<Long> issueNumbers = new HashSet<>(); boolean fixWordsFound = false; String lowerCaseCommitMessage = commitMessage.toLowerCase(); for (String word: ISSUE_FIX_WORDS) { if (lowerCaseCommitMessage.indexOf(word) != -1) { fixWordsFound = true; break; } } if (fixWordsFound && lowerCaseCommitMessage.contains("#") && lowerCaseCommitMessage.contains("issue")) { Matcher matcher = ISSUE_FIX_PATTERN.matcher(lowerCaseCommitMessage); while (matcher.find()) issueNumbers.add(Long.parseLong(matcher.group(3))); } return issueNumbers; }  static void clearFields(Serializable fieldBean); @SuppressWarnings("unchecked") static Class<? extends Serializable> defineFieldBeanClass(Project project); @Nullable static Class<? extends Serializable> loadFieldBeanClass(String className); static Collection<String> getPropertyNames(Project project, Class<?> fieldBeanClass, Collection<String> fieldNames); static Map<String, Object> getFieldValues(ComponentContext context, Serializable fieldBean, Collection<String> fieldNames); static Collection<Long> parseFixedIssueNumbers(String commitMessage);  }### Answer:
@Test public void testParseFixedIssueNumbers() { assertEquals(Sets.newHashSet(1L, 2L, 3L, 4L), IssueUtils.parseFixedIssueNumbers( "fix issue #1,fixing issue #2 fix issue #3 and resolve issue #4: gogogo")); }