Crypto { public String signHmacSha1(String message) { return signHmacSha1(message, applicationSecret); } @Inject  Crypto(NinjaProperties ninjaProperties); String signHmacSha1(String message);  }
@Test public void testSigning() { assertEquals("f0f591a35650937c9559ee8f98cc29dac46c3fcb", crypto.signHmacSha1("Sentence to sign")); assertEquals("ba864c24a2a80a639d4f76bb44fd71650dcd4904", crypto.signHmacSha1("Another sentence to sign")); assertEquals("4ad5fb0895dbc0c7172f9fc85d59f74b69f99b8b", crypto.signHmacSha1("Yet another sentence to sign")); }