@Deprecated
    public static void validateId(UUID id, String errorMessage) {
        if (id == null) {
            throw new IncorrectParameterException(errorMessage);
        }
    }
@Test
    void validateUUIDBasedIdTest() {
        Validator.validateId(TenantId.SYS_TENANT_ID, id -> "Incorrect Id " + id);
        Validator.validateId(goodDeviceId, id -> "Incorrect Id " + id);

        assertThatThrownBy(() -> Validator.validateId((UUIDBased) null, id -> "Incorrect Id " + id))
                .as("Id is null")
                .isInstanceOf(IncorrectParameterException.class)
                .hasMessageContaining("Incorrect Id null");

        assertThatThrownBy(() -> Validator.validateId(nullUserId, id -> "Incorrect Id " + id))
                .as("Id with null UUIDBased")
                .isInstanceOf(IncorrectParameterException.class)
                .hasMessageContaining("Incorrect Id null");

    }