@Test
public void testUnadvertise() {

	t1.unadvertise();
	while (DummyHandler.latest == null) {
		Thread.yield();
	}
	assertNotNull(DummyHandler.latest);
	assertEquals(
			"{\"op\":\"unadvertise\",\"id\":\"unadvertise:myTopic1:0\",\"topic\":\"myTopic1\"}",
			DummyHandler.latest.toString());
	assertFalse(t1.isAdvertised());
	assertFalse(t1.isSubscribed());
}