@Test
public void testInvalidSignedText() throws Exception {

  Signer signer = new Signer("secret".getBytes());
  try {
    signer.verifyAndExtract("test");
    Assert.fail();
  } catch (SignerException ex) {
    // Expected
  } catch (Throwable ex) {
    Assert.fail();
  }
}