theirMethod.setConsumerSecret("xxxxxx");
theirMethod.setTokenSecret("");
SecretKeySpec spec = new SecretKeySpec("xxxxxx&".getBytes("UTF-8"), HMAC_SHA1SignatureMethod.MAC_NAME);
HMAC_SHA1SignatureMethod ourMethod = new HMAC_SHA1SignatureMethod(spec);
String theirSignature = theirMethod.getSignature(baseString);
String ourSignature = ourMethod.sign(baseString);
assertEquals(theirSignature, ourSignature);
}
/**
* tests compatibility of calculating the signature base string.