public void testFixedKey() throws Exception {
BlobCrypter alt = new BasicBlobCrypter("0123456789abcdef".getBytes());
Map<String, String> in = ImmutableMap.of("a","b");
String blob = crypter.wrap(in);
Map<String, String> out = alt.unwrap(blob, 30);
assertEquals("b", out.get("a"));
}
@Test
public void testBadKey() throws Exception {