@Test
public void testAdvertise() {

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