@Test
public void testLoadPemKeyWithWrongLocation() throws Exception {

    expectedEx.expect(UnresolvableKeyException.class);
    JWTAuthContextInfo contextInfo = new JWTAuthContextInfo();
    contextInfo.setDecryptionKeyLocation("wrong_location.pem");
    new DecryptionKeyLocationResolver(contextInfo).resolveKey(encryption, emptyList());
}