/** * Verifies that the helper asserts a minimum length of 32 bytes for shared secrets. */ @Test(expected = IllegalArgumentException.class) public void testForSigningRejectsShortSecret() { final String shortSecret = "01234567890123456"; // not 32 bytes long RegistrationAssertionHelperImpl.forSharedSecret(shortSecret, 10); }