ReferenceTagger { public static String createClaimId(final String text){ Matcher clmMatcher = CLAIM_REF.matcher(text); StringBuilder stb = new StringBuilder(); if (clmMatcher.matches()){ stb.append("CLM-"); stb.append(Strings.padStart(clmMatcher.group(2), 4, '0')); } return stb.toString(); }  static String markRefs(final String rawText); static String createClaimId(final String text); static String createFigId(final String text); static String normRefs(final String text);  }
@Test public void createClaimId() { String claimId = ReferenceTagger.createClaimId("claim 1"); String expect = "CLM-0001"; assertEquals(expect, claimId); }