LgoSignatureServicePassthroughs implements LgoSignatureService { @Override public LgoOrderSignature signOrder(String encryptedOrder) { return new LgoOrderSignature(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 putsIdentifierInOrderSignature() { LgoOrderSignature encryptedOrder = signatureService.signOrder("encryptedOrder"); assertThat(encryptedOrder).isNotNull(); assertThat(encryptedOrder.getSource()).isEqualTo("RSA"); assertThat(encryptedOrder.getValue()).isEqualTo("dXNlcjprZXk6c2VjcmV0"); }