@Test
void build() {

    Bundle bundle = new Bundle();
    bundle.putAllPrivateKeys(ImmutableMap.of("test", createPrivateKey()));
    PrivateKeyEntityBuilder builder = new PrivateKeyEntityBuilder(keystoreHelper);
    final List<Entity> entities = builder.build(bundle, BundleType.ENVIRONMENT, INSTANCE.getDocumentBuilder().newDocument());
    assertNotNull(entities);
    assertFalse(entities.isEmpty());
    assertEquals(1, entities.size());
    Entity entity = entities.get(0);
    assertEquals(EntityTypes.PRIVATE_KEY_TYPE, entity.getType());
    Assertions.assertEquals(KeyStoreType.GENERIC.generateKeyId("test"), entity.getId());
    assertEquals("test", entity.getName());
}