@Test
public void testUpdatePermissions_shouldCreatePermission() throws LdapInvalidAttributeValueException,
    NoSuchNodeException, MissingParentException {

    Permission permission = createTestPermission();
    ldapService.updatePermissions(Lists.newArrayList(permission));
    assertThat(ldapDao.exists(DnFactory.permission(permission)), is(true));
    assertCorrectlyStored(permission);
}