LgoSignatureServicePassthroughs implements LgoSignatureService { @Override public String digestSignedUrlHeader(String urlToSign, String timestamp) { return value; } LgoSignatureServicePassthroughs(String userName, String apiKey, String secretKey); @Override String digestSignedUrlHeader(String urlToSign, String timestamp); @Override String digestSignedUrlAndBodyHeader(String urlToSign, String timestamp, String body); @Override LgoOrderSignature signOrder(String encryptedOrder);  }
@Test public void itEncodesUserInformations() { String result = signatureService.digestSignedUrlHeader("url", "1234"); assertThat(result).isEqualTo("dXNlcjprZXk6c2VjcmV0"); }