@Test public void shouldReturnSignature() { String apiSecret = "api secret"; String tokenSecret = "token secret"; String baseString = "base string"; String signature = "LUNRzQAlpdNyM9mLXm96Va6g/qVNnEAb7p7K1KM0g8IopOFQJPoOO7cvppgt7w3QyhijWJnCmvqXaaIAGrqvdyr3fIzBULh8D/iZQUNLMi08GCOA34P81XBvsc7A5uJjPDsGhJg2MzoVJ8nWJhU/lMMk4c92S1WGskeoDofRwpo="; assertEquals(signature, service.getSignature(baseString, apiSecret, tokenSecret)); }
@Test public void shouldReturnSignatureMethodString() { String expected = "RSA-SHA1"; assertEquals(expected, service.getSignatureMethod()); }