@Test
public void testUnadvertiseService() {

	s1.unadvertiseService();
	while (DummyHandler.latest == null) {
		Thread.yield();
	}
	assertNotNull(DummyHandler.latest);
	assertEquals(
			"{\"op\":\"unadvertise_service\",\"service\":\"myService\"}",
			DummyHandler.latest.toString());
	assertFalse(s1.isAdvertised());
}