#include <gtest/gtest.h>
#include <simpledbus/advanced/Proxy.h>
using namespace SimpleDBus;
TEST(ProxyLifetime, Validity) {
Proxy p = Proxy(nullptr, "", "/");
ASSERT_TRUE(p.valid());
ASSERT_TRUE(p.path_remove("/", Holder::create<std::vector<Holder>>()));
ASSERT_FALSE(p.valid());
}