@Override
    public int delete(final String id) {
        if (!ObjectId.isValid(id)) {
            return 0;
        }
        int numRemoved = super.delete(id);
        indexSetService.removeReferencesToProfile(id);
        return numRemoved;
    }
@Test
    public void testRemovalWithIncorrectProfileIdDoesNothing() {
        final int result = toTest.delete("hmm");
        assertEquals(0, result);
    }