public long countInstallationOfEntityById(ModelId entityId) {
        final String field = String.format(Locale.ROOT, "%s.%s", ContentPackInstallation.FIELD_ENTITIES, NativeEntityDescriptor.FIELD_META_ID);

        return dbCollection.getCount(DBQuery.is(field, entityId));
    }
@Test
    @MongoDBFixtures("ContentPackInstallationPersistenceServiceTest.json")
    public void countInstallationOfEntityById() {
        final long countedInstallations1 = persistenceService.countInstallationOfEntityById(ModelId.of("5b4c920b4b900a0024af2b5d"));
        assertThat(countedInstallations1).isEqualTo(2);

        final long countedInstallations2 = persistenceService.countInstallationOfEntityById(ModelId.of("non-exsistant"));
        assertThat(countedInstallations2).isEqualTo(0);

        final long countedInstallations3 = persistenceService.countInstallationOfEntityById(ModelId.of("5b4c920b4b900abeefaf2b5c"));
        assertThat(countedInstallations3).isEqualTo(1);
    }