+
+TEST(HostAndPortTest, CanOutput)
+{
+ std::string expectedOutput("somehost.somesubdomain.somedomain:1234");
+ std::stringstream ss;
+ HostAndPort hostAndPort("somehost.somesubdomain.somedomain", 1234);
+ ss << hostAndPort;
+ EXPECT_EQ(expectedOutput, ss.str());
+}