2829303132333435
{ ServerSpec s1 = new ServerSpec("host", 1, ServerType.STANDARD); ServerSpec s2 = new ServerSpec("host", 2, ServerType.OBSERVER); Assert.assertEquals(s1.toSpecString(), "1:host"); Assert.assertEquals(s2.toSpecString(), "O:2:host"); } }