@Test
 public void testParsing2() throws Exception {
   String s = "[tomas;10.0.0.0/10000;tcp;1000;1000;;/home/tomas;;]";
   NetconfServerSessionNegotiator.AdditionalHeader header = AdditionalHeaderUtil.fromString(s);
   Assert.assertEquals("tomas", header.getUsername());
   Assert.assertEquals("10.0.0.0", header.getAddress());
   Assert.assertEquals("tcp", header.getTransport());
 }
 @Test
 public void testParsing() throws Exception {
   String s = "[netconf;10.12.0.102:48528;ssh;;;;;;]";
   NetconfServerSessionNegotiator.AdditionalHeader header = AdditionalHeaderUtil.fromString(s);
   Assert.assertEquals("netconf", header.getUsername());
   Assert.assertEquals("10.12.0.102", header.getAddress());
   Assert.assertEquals("ssh", header.getTransport());
 }
 @Test(expected = IllegalArgumentException.class)
 public void testParsingNoUsername() throws Exception {
   String s = "[10.12.0.102:48528;ssh;;;;;;]";
   AdditionalHeaderUtil.fromString(s);
 }