public boolean update(final String profileId, final IndexFieldTypeProfile updatedProfile) {
        if (!ObjectId.isValid(profileId)) {
            return false;
        }
        updatedProfile.customFieldMappings().forEach(mapping -> checkFieldTypeCanBeChanged(mapping.fieldName()));
        final WriteResult<IndexFieldTypeProfile, ObjectId> writeResult = db.updateById(new ObjectId(profileId), updatedProfile);
        return writeResult.getN() > 0;
    }
@Test
    public void testUpdateWithIncorrectProfileIdDoesNothing() {
        final boolean result = toTest.update("hmm", new IndexFieldTypeProfile(null, "Hmm", "Hmm", new CustomFieldMappings(List.of())));
        assertFalse(result);
    }