SignatureChecker { public static String getPublicKey() { final BufferedReader reader = new BufferedReader( new InputStreamReader(SignatureChecker.class.getResourceAsStream("phoenicis.gpg"))); final StringBuilder readPublicKey = new StringBuilder(); try { for (String line = reader.readLine(); line != null; line = reader.readLine()) { readPublicKey.append(line).append("\n"); } } catch (IOException e) { throw new IllegalStateException(e); } return readPublicKey.toString(); }  SignatureChecker withSignature(String signature); SignatureChecker withData(String signedData); SignatureChecker withPublicKey(String publicKey); Boolean check(); static String getPublicKey(); @Override String toString();  }
@Test public void testGetPublicKey() { assertEquals(PUBLIC_KEY, SignatureChecker.getPublicKey()); }