CryptoBase implements Crypto { @Override public String getPublicKeyBase64Str() { return publicKeyBase64Str; }  @Override String getPublicKeyBase64Str(); static String sign(String message, PrivateKey privateKey); @Override String sign(String message);  }
@Test public void getPublicKeyBase64Str_shouldReturnSameKeyOnTwoConsecutiveCalls () { String publicKeyA = crypto.getPublicKeyBase64Str(); String publicKeyB = crypto.getPublicKeyBase64Str(); assertThat(publicKeyA) .isNotEmpty() .isEqualTo(publicKeyB); }