}
@Test
public void testIsXxx()
{
ChannelId id;
id = new ChannelId("/foo/bar");
Assert.assertFalse(id.isDeepWild());
Assert.assertFalse(id.isMeta());
Assert.assertFalse(id.isService());
Assert.assertFalse(id.isWild());
id = new ChannelId("/foo/*");
Assert.assertTrue(id.isShallowWild());
Assert.assertFalse(id.isDeepWild());
Assert.assertFalse(id.isMeta());
Assert.assertFalse(id.isService());
Assert.assertTrue(id.isWild());
id = new ChannelId("/foo/**");
Assert.assertTrue(id.isDeepWild());
Assert.assertFalse(id.isMeta());
Assert.assertFalse(id.isService());
Assert.assertTrue(id.isWild());
id = new ChannelId("/meta/bar");
Assert.assertFalse(id.isDeepWild());
Assert.assertTrue(id.isMeta());
Assert.assertFalse(id.isService());
Assert.assertFalse(id.isWild());
id = new ChannelId("/service/bar");
Assert.assertFalse(id.isDeepWild());
Assert.assertFalse(id.isMeta());
Assert.assertTrue(id.isService());
Assert.assertFalse(id.isWild());
id = new ChannelId("/service/**");
Assert.assertTrue(id.isDeepWild());
Assert.assertFalse(id.isMeta());
Assert.assertTrue(id.isService());
Assert.assertTrue(id.isWild());
id = new ChannelId("/service/{var}");
Assert.assertFalse(id.isMeta());
Assert.assertTrue(id.isService());
Assert.assertFalse(id.isWild());
Assert.assertTrue(id.isTemplate());
}