public int deleteById(ObjectId id) {
        final WriteResult<ContentPackInstallation, ObjectId> writeResult = dbCollection.removeById(id);
        return writeResult.getN();
    }
@Test
    @MongoDBFixtures("ContentPackInstallationPersistenceServiceTest.json")
    public void deleteById() {
        final ObjectId objectId = new ObjectId("5b4c935b4b900a0000000001");
        final int deletedContentPacks = persistenceService.deleteById(objectId);
        final Set<ContentPackInstallation> contentPacks = persistenceService.loadAll();

        assertThat(deletedContentPacks).isEqualTo(1);
        assertThat(contentPacks)
                .hasSize(3)
                .noneSatisfy(contentPack -> assertThat(contentPack.id()).isEqualTo(objectId));
    }