public void removeProfile(String queryId) {
        writeLock.lock();
        try {
            loadProfileMap.remove(queryId);
            profileMap.remove(queryId);
        } finally {
            writeLock.unlock();
        }
    }
@Test
    public void testRemoveProfile() {
        ProfileManager manager = ProfileManager.getInstance();
        RuntimeProfile profile = buildRuntimeProfile("124", "Load");
        manager.pushProfile(null, profile);

        String retrievedProfile = manager.getProfile("124");
        assertNotNull(retrievedProfile, "Retrieved profile should not be null");

        manager.removeProfile("124");
        assertNull(manager.getProfile("124"), "Profile should be removed");
        assertFalse(manager.hasProfile("124"), "Profile should not exist");
    }