ConstantKeyProvider implements IKeyProvider { @Override public String getKey(SessionBlob blob) { return "thebestsecretkey"; }  @Override String getKey(SessionBlob blob);  }
@Test public void test() { Assert.assertEquals("thebestsecretkey", new ConstantKeyProvider().getKey(null)); Assert.assertEquals("thebestsecretkey", new ConstantKeyProvider().getKey(new SessionBlob())); }