CondenserUtils { public static List<String> extractUsersFromContent(String content) { List<String> containedUrls = new ArrayList<>(); Pattern pattern = Pattern.compile("(@{1})([a-z0-9\\.-]{3,16})", Pattern.CASE_INSENSITIVE); Matcher urlMatcher = pattern.matcher(content); while (urlMatcher.find()) { containedUrls.add(content.substring(urlMatcher.start(2), urlMatcher.end(2))); } return containedUrls; } private  CondenserUtils(); static List<String> extractLinksFromContent(String content); static List<String> extractUsersFromContent(String content); static String generateSteemitMetadata(String content, String[] tags, String app, String format,
            Map<String, Object> extraMetadata); static String createPermlinkString(String title);  }
@SuppressWarnings("unchecked") @Test public void testExtractUsernamesFromContent() { List<String> extractedUsernames = CondenserUtils.extractUsersFromContent(DUMMY_TEXT_USER); assertThat(extractedUsernames, contains(equalTo("dez1337"), equalTo("steemj"))); }