@Test
public void testKeyInPropertiesLaxDecoding() throws Exception {

    Properties options = new Properties();
    options.setProperty("security.publickey.test", "NOT A KEY");
    KeyStoreBuilder builder = new KeyStoreBuilder(options, nullOpener);
    KeyStore store = builder.buildKeyStore();
    Enumeration<String> aliases = store.aliases();
    assertFalse(aliases.hasMoreElements());
}