@Deprecated
    public static void validateEntityId(EntityId entityId, String errorMessage) {
        if (entityId == null || entityId.getId() == null) {
            throw new IncorrectParameterException(errorMessage);
        }
    }
@Test
    void validateEntityIdTest() {
        Validator.validateEntityId(TenantId.SYS_TENANT_ID, id -> "Incorrect entityId " + id);
        Validator.validateEntityId(goodDeviceId, id -> "Incorrect entityId " + id);

        assertThatThrownBy(() -> Validator.validateEntityId(null, id -> "Incorrect entityId " + id))
                .as("EntityId is null")
                .isInstanceOf(IncorrectParameterException.class)
                .hasMessageContaining("Incorrect entityId null");

        assertThatThrownBy(() -> Validator.validateEntityId(nullUserId, id -> "Incorrect entityId " + id))
                .as("EntityId with null UUID")
                .isInstanceOf(IncorrectParameterException.class)
                .hasMessageContaining("Incorrect entityId null");
    }