+test_new_empty (void)
+{
+ SecretValue *value;
+ const gchar *password;
+ gsize length;
+
+ value = secret_value_new (NULL, 0, "text/plain");
+ g_assert (value != NULL);
+ password = secret_value_get (value, &length);
+ g_assert_cmpuint (length, ==, 0);
+ g_assert_cmpstr (password, ==, "");
+ secret_value_unref (value);
+
+ value = secret_value_new ("", 0, "text/plain");
+ g_assert (value != NULL);
+ password = secret_value_get (value, &length);
+ g_assert_cmpuint (length, ==, 0);
+ g_assert_cmpstr (password, ==, "");
+ secret_value_unref (value);
+}
+
+static void