@Override
    public int delete(final long id, final boolean lockCheck) {
        final Meta meta = metaMap.get(id);
        if (lockCheck && !Status.UNLOCKED.equals(meta.getStatus())) {
            return 0;
        }

        if (metaMap.remove(id) != null) {
            return 1;
        }
        return 0;
    }
This id is used to emulate the primary key on the database.
stroom-meta/stroom-meta-mock/src/main/java/stroom/meta/mock/MockMetaService.java