NodeIdEncoding { public static String nodeIdForFingerprint(final String fingerprint) { checkNotNull(fingerprint); String sha1 = fingerprint.replace(":", ""); return nodeIdForSha1(sha1); } private  NodeIdEncoding(); static String nodeIdForSha1(final String input); static String sha1ForNodeId(final String input); static String nodeIdForCertificate(final Certificate cert); static String nodeIdForFingerprint(final String fingerprint);  }
@Test public void nodeIdForFingerprint() { String output = NodeIdEncoding.nodeIdForFingerprint(FINGERPRINT); assertThat(output, equalTo(NODE_ID)); }