@Test
void load() {

    PrivateKeyLoader loader = new PrivateKeyLoader();
    Bundle bundle = new Bundle();
    loader.load(bundle, createXml(
            DocumentTools.INSTANCE.getDocumentBuilder().newDocument()
    ));
    assertFalse(bundle.getPrivateKeys().isEmpty());
    assertEquals(1, bundle.getPrivateKeys().size());
    PrivateKey privateKey = bundle.getPrivateKeys().get("alias");
    assertNotNull(privateKey);
    assertEquals("alias", privateKey.getName());
    assertEquals("alias", privateKey.getAlias());
    assertEquals(KeyStoreType.GENERIC, privateKey.getKeyStoreType());
    assertEquals(KeyStoreType.GENERIC.getName(), privateKey.getKeystore());
    assertEquals("EC", privateKey.getAlgorithm());
}